diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-01 16:00:36 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-08-01 16:00:36 +0000 |
commit | 709ac26394a9a67596147adb9dc6f47060072666 (patch) | |
tree | 44d841afa44147cb0bdec1395c9bdd5e25865391 /cpukit/score/inline/rtems/score/heap.inl | |
parent | 2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-709ac26394a9a67596147adb9dc6f47060072666.tar.bz2 |
2009-08-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/inline/rtems/score/heap.inl: Revert accidental commit.
Diffstat (limited to 'cpukit/score/inline/rtems/score/heap.inl')
-rw-r--r-- | cpukit/score/inline/rtems/score/heap.inl | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cpukit/score/inline/rtems/score/heap.inl b/cpukit/score/inline/rtems/score/heap.inl index 24be426926..b8bb124423 100644 --- a/cpukit/score/inline/rtems/score/heap.inl +++ b/cpukit/score/inline/rtems/score/heap.inl @@ -240,16 +240,8 @@ RTEMS_INLINE_ROUTINE void _Heap_Align_up_uptr ( { _H_uptr_t v = *value; uint32_t a = alignment; - - if ( v % alignment ) - *value = v - r + a; - -/* - else - *value = v; -*/ - - /* *value = r ? v - r + a : v; */ + _H_uptr_t r = v % a; + *value = r ? v - r + a : v; } /** |