Changeset 91a3554d in rtems


Ignore:
Timestamp:
09/19/95 21:43:12 (28 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
d434b8d6
Parents:
84ee59f5
Message:

Modifications from Tony Bennett accepted to return aligned block.

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/headers/heap.h

    r84ee59f5 r91a3554d  
    279279);
    280280
     281/*PAGE
     282 *
     283 *  _Heap_User_Block_at
     284 *
     285 */
     286
     287STATIC INLINE Heap_Block *_Heap_User_Block_at(
     288  void       *base
     289);
     290
    281291/*
    282292 *  _Heap_Is_previous_block_free
  • c/src/exec/score/include/rtems/score/heap.h

    r84ee59f5 r91a3554d  
    279279);
    280280
     281/*PAGE
     282 *
     283 *  _Heap_User_Block_at
     284 *
     285 */
     286
     287STATIC INLINE Heap_Block *_Heap_User_Block_at(
     288  void       *base
     289);
     290
    281291/*
    282292 *  _Heap_Is_previous_block_free
  • c/src/exec/score/inline/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 *
  • c/src/exec/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 *
  • c/src/exec/score/macros/heap.inl

    r84ee59f5 r91a3554d  
    7171/*PAGE
    7272 *
     73 *  _Heap_User_Block_at
     74 *
     75 */
     76 
     77#define _Heap_User_Block_at( _base ) \
     78  _Heap_Block_at( \
     79    (_base), \
     80    -*(((unsigned32 *) (_base)) - 1) + -HEAP_BLOCK_USED_OVERHEAD \
     81  )
     82
     83/*PAGE
     84 *
    7385 *  _Heap_Is_previous_block_free
    7486 */
  • c/src/exec/score/macros/rtems/score/heap.inl

    r84ee59f5 r91a3554d  
    7171/*PAGE
    7272 *
     73 *  _Heap_User_Block_at
     74 *
     75 */
     76 
     77#define _Heap_User_Block_at( _base ) \
     78  _Heap_Block_at( \
     79    (_base), \
     80    -*(((unsigned32 *) (_base)) - 1) + -HEAP_BLOCK_USED_OVERHEAD \
     81  )
     82
     83/*PAGE
     84 *
    7385 *  _Heap_Is_previous_block_free
    7486 */
  • cpukit/score/include/rtems/score/heap.h

    r84ee59f5 r91a3554d  
    279279);
    280280
     281/*PAGE
     282 *
     283 *  _Heap_User_Block_at
     284 *
     285 */
     286
     287STATIC INLINE Heap_Block *_Heap_User_Block_at(
     288  void       *base
     289);
     290
    281291/*
    282292 *  _Heap_Is_previous_block_free
  • 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 *
  • cpukit/score/macros/rtems/score/heap.inl

    r84ee59f5 r91a3554d  
    7171/*PAGE
    7272 *
     73 *  _Heap_User_Block_at
     74 *
     75 */
     76 
     77#define _Heap_User_Block_at( _base ) \
     78  _Heap_Block_at( \
     79    (_base), \
     80    -*(((unsigned32 *) (_base)) - 1) + -HEAP_BLOCK_USED_OVERHEAD \
     81  )
     82
     83/*PAGE
     84 *
    7385 *  _Heap_Is_previous_block_free
    7486 */
Note: See TracChangeset for help on using the changeset viewer.