Ignore:
Timestamp:
Apr 5, 2017, 9:28:46 AM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, master
Children:
9b91c84
Parents:
75e71b2
Message:

SMP: Simplify SMP multicast actions

File:
1 edited

Legend:

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

    r75e71b2 r46f05b9  
    6363typedef uint32_t Processor_mask[ PROCESSOR_MASK_FIELD_COUNT ];
    6464
     65RTEMS_INLINE_ROUTINE void _Processor_mask_Zero( Processor_mask mask )
     66{
     67  size_t i;
     68
     69  for ( i = 0; i < PROCESSOR_MASK_FIELD_COUNT; ++i ) {
     70    mask[ i ] = 0;
     71  }
     72}
     73
     74RTEMS_INLINE_ROUTINE bool _Processor_mask_Is_zero( const Processor_mask mask )
     75{
     76  size_t i;
     77
     78  for ( i = 0; i < PROCESSOR_MASK_FIELD_COUNT; ++i ) {
     79    if ( mask[ i ] != 0 ) {
     80      return false;
     81    }
     82  }
     83
     84  return true;
     85}
     86
     87RTEMS_INLINE_ROUTINE void _Processor_mask_Assign( Processor_mask dst, const Processor_mask src )
     88{
     89  size_t i;
     90
     91  for ( i = 0; i < PROCESSOR_MASK_FIELD_COUNT; ++i ) {
     92    dst[ i ] = src[ i ];
     93  }
     94}
     95
    6596RTEMS_INLINE_ROUTINE void _Processor_mask_Set( Processor_mask mask, uint32_t index )
    6697{
Note: See TracChangeset for help on using the changeset viewer.