Changeset 91a3554d in rtems for cpukit/score/inline


Ignore:
Timestamp:
Sep 19, 1995, 9:43:12 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
d434b8d6
Parents:
84ee59f5
Message:

Modifications from Tony Bennett accepted to return aligned block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/inline/rtems/score/heap.inl

    r84ee59f5 r91a3554d  
    9595/*PAGE
    9696 *
     97 *  _Heap_User_Block_at
     98 *
     99 */
     100 
     101STATIC INLINE Heap_Block *_Heap_User_Block_at(
     102  void       *base
     103)
     104{
     105  unsigned32         offset;
     106 
     107  offset = *(((unsigned32 *) base) - 1);
     108  return _Heap_Block_at( base, -offset + -HEAP_BLOCK_USED_OVERHEAD);
     109}
     110
     111/*PAGE
     112 *
    97113 *  _Heap_Is_previous_block_free
    98114 *
Note: See TracChangeset for help on using the changeset viewer.