source: rtems/c/src/exec/score/headers/bitfield.h @ eb5a7e07

4.104.114.84.95
Last change on this file since eb5a7e07 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 1.3 KB
Line 
1/*  bitfield.h
2 *
3 *  This include file contains all bit field manipulation routines.
4 *
5 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
6 *  On-Line Applications Research Corporation (OAR).
7 *  All rights assigned to U.S. Government, 1994.
8 *
9 *  This material may be reproduced by or for the U.S. Government pursuant
10 *  to the copyright license under the clause at DFARS 252.227-7013.  This
11 *  notice must appear in all copies of this file and its derivatives.
12 *
13 *  $Id$
14 */
15
16#ifndef __RTEMS_BITFIELD_h
17#define __RTEMS_BITFIELD_h
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/*
24 *  _Bitfield_Find_first_bit
25 *
26 *  DESCRIPTION:
27 *
28 *  This routine returns the bit_number of the first bit set
29 *  in the specified value.  The correspondence between bit_number
30 *  and actual bit position is processor dependent.  The search for
31 *  the first bit set may run from most to least significant bit
32 *  or vice-versa.
33 *
34 *  NOTE:
35 *
36 *  This routine is used when the executing thread is removed
37 *  from the ready state and, as a result, its performance has a
38 *  significant impact on the performance of the executive as a whole.
39 */
40
41#define _Bitfield_Find_first_bit( _value, _bit_number ) \
42        _CPU_Bitfield_Find_first_bit( _value, _bit_number )
43
44#ifdef __cplusplus
45}
46#endif
47
48#endif
49/* end of include file */
Note: See TracBrowser for help on using the repository browser.