summaryrefslogtreecommitdiffstats
path: root/cpukit/score/inline/rtems/score/heap.inl
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-01 15:58:59 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-08-01 15:58:59 +0000
commit894bbbc4f2da0b2157756ba6cdd9063b1c826c80 (patch)
tree9fb38035e2aeb526872e9c4ffa43a1aad886d83e /cpukit/score/inline/rtems/score/heap.inl
parent2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-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.inl12
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; */
}
/**