diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-01 15:58:59 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-01 15:58:59 +0000 |
commit | 894bbbc4f2da0b2157756ba6cdd9063b1c826c80 (patch) | |
tree | 9fb38035e2aeb526872e9c4ffa43a1aad886d83e /cpukit/score/inline/rtems/score/heap.inl | |
parent | 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-894bbbc4f2da0b2157756ba6cdd9063b1c826c80.tar.bz2 |
2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/heap.inl, score/src/heapwalk.c: Do not
inline code to check if newline should be printed. It leads to branch
path explosion which is really hard to get coverage on.
Diffstat (limited to 'cpukit/score/inline/rtems/score/heap.inl')
-rw-r--r-- | cpukit/score/inline/rtems/score/heap.inl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/score/inline/rtems/score/heap.inl b/cpukit/score/inline/rtems/score/heap.inl index b8bb124423..24be426926 100644 --- a/cpukit/score/inline/rtems/score/heap.inl +++ b/cpukit/score/inline/rtems/score/heap.inl @@ -240,8 +240,16 @@ RTEMS_INLINE_ROUTINE void _Heap_Align_up_uptr ( { _H_uptr_t v = *value; uint32_t a = alignment; - _H_uptr_t r = v % a; - *value = r ? v - r + a : v; + + if ( v % alignment ) + *value = v - r + a; + +/* + else + *value = v; +*/ + + /* *value = r ? v - r + a : v; */ } /** |