Ignore:
Timestamp:
Jan 9, 2008, 10:35:10 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
bc0ff47
Parents:
4d320062
Message:

2008-01-09 Joel Sherrill <joel.sherrill@…>

  • score/include/rtems/score/wkspace.h, score/inline/rtems/score/wkspace.inl, score/src/wkspace.c: Do not inline _Workspace_Free or _Workspace_Allocate since they are not always inlined and actually smaller overall as subroutines. They are not particularly time critical so inlining is not absolutely necessary.
File:
1 edited

Legend:

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

    r4d320062 r5b33dc80  
    77
    88/*
    9  *  COPYRIGHT (c) 1989-2004.
     9 *  COPYRIGHT (c) 1989-2007.
    1010 *  On-Line Applications Research Corporation (OAR).
    1111 *
     
    2525 */
    2626
    27 /**
    28  *  This routine returns the address of a block of memory of size
    29  *  bytes.  If a block of the appropriate size cannot be allocated
    30  *  from the workspace, then NULL is returned.
    31  */
    32 
    33 RTEMS_INLINE_ROUTINE void *_Workspace_Allocate(
    34   size_t   size
    35 )
    36 {
    37    return _Heap_Allocate( &_Workspace_Area, size );
    38 }
    39 
    40 /**
    41  *  This function frees the specified block of memory.  If the block
    42  *  belongs to the Workspace and can be successfully freed, then
    43  *  TRUE is returned.  Otherwise FALSE is returned.
    44  */
    45 
    46 RTEMS_INLINE_ROUTINE boolean _Workspace_Free(
    47   void *block
    48 )
    49 {
    50    return _Heap_Free( &_Workspace_Area, block );
    51 }
    52 
    5327/**@}*/
    5428
Note: See TracChangeset for help on using the changeset viewer.