Changeset bf021daf in rtems


Ignore:
Timestamp:
Jun 8, 2016, 6:14:58 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
7103ad34
Parents:
b04b76c6
git-author:
Sebastian Huber <sebastian.huber@…> (06/08/16 06:14:58)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/08/16 13:48:03)
Message:

score: Define _Priority_Mask() once

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/prioritybitmapimpl.h

    rb04b76c6 rbf021daf  
    7575#endif
    7676
     77/**
     78 * @brief Returns the priority bit mask for the specified major or minor bit
     79 * number.
     80 *
     81 * @param bit_number The bit number for which we need a mask.
     82 *
     83 * @return The priority bit mask.
     84 */
     85RTEMS_INLINE_ROUTINE Priority_bit_map_Word _Priority_Mask(
     86  unsigned int bit_number
     87)
     88{
    7789#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
    78 /**
    79  *  This method returns the priority bit mask for the specified major
    80  *  or minor bit number.
    81  *
    82  *  @param[in] _bit_number is the bit number for which we need a mask
    83  *
    84  *  @retval the priority bit mask
    85  *
    86  *  @note This may simply be a pass through to a CPU dependent implementation.
    87  */
    88 #define _Priority_Mask( _bit_number ) \
    89   _CPU_Priority_Mask( _bit_number )
    90 #endif
     90  return _CPU_Priority_Mask( bit_number );
     91#else
     92  return (Priority_bit_map_Word) ( 0x8000u >> bit_number );
     93#endif
     94}
    9195
    9296#if ( CPU_USE_GENERIC_BITFIELD_CODE == FALSE )
     
    123127
    124128#if ( CPU_USE_GENERIC_BITFIELD_CODE == TRUE )
    125 
    126 /**
    127  * This function returns the mask associated with the major or minor
    128  * number passed to it.
    129  */
    130 
    131 RTEMS_INLINE_ROUTINE Priority_bit_map_Word   _Priority_Mask (
    132   unsigned int bit_number
    133 )
    134 {
    135   return (Priority_bit_map_Word)(0x8000u >> bit_number);
    136 }
    137129
    138130/**
Note: See TracChangeset for help on using the changeset viewer.