1 | /* macros/attr.h |
---|
2 | * |
---|
3 | * This include file contains all of the inlined routines associated |
---|
4 | * with attributes. |
---|
5 | * |
---|
6 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
7 | * On-Line Applications Research Corporation (OAR). |
---|
8 | * All rights assigned to U.S. Government, 1994. |
---|
9 | * |
---|
10 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
11 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
12 | * notice must appear in all copies of this file and its derivatives. |
---|
13 | * |
---|
14 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #ifndef __MACROS_ATTRIBUTES_h |
---|
18 | #define __MACROS_ATTRIBUTES_h |
---|
19 | |
---|
20 | /*PAGE |
---|
21 | * |
---|
22 | * _Attributes_Set |
---|
23 | */ |
---|
24 | |
---|
25 | #define _Attributes_Set( _new_attributes, _attribute_set ) \ |
---|
26 | ( (_attribute_set) | (_new_attributes) ) |
---|
27 | |
---|
28 | /*PAGE |
---|
29 | * |
---|
30 | * _Attributes_Clear |
---|
31 | */ |
---|
32 | |
---|
33 | #define _Attributes_Clear( _attribute_set, _mask ) \ |
---|
34 | ( (_attribute_set) & ~(_mask) ) |
---|
35 | |
---|
36 | /*PAGE |
---|
37 | * |
---|
38 | * _Attributes_Is_floating_point |
---|
39 | * |
---|
40 | */ |
---|
41 | |
---|
42 | #define _Attributes_Is_floating_point( _attribute_set ) \ |
---|
43 | ( (_attribute_set) & RTEMS_FLOATING_POINT ) |
---|
44 | |
---|
45 | /*PAGE |
---|
46 | * |
---|
47 | * _Attributes_Is_global |
---|
48 | * |
---|
49 | */ |
---|
50 | |
---|
51 | #define _Attributes_Is_global( _attribute_set ) \ |
---|
52 | ( (_attribute_set) & RTEMS_GLOBAL ) |
---|
53 | |
---|
54 | /*PAGE |
---|
55 | * |
---|
56 | * _Attributes_Is_priority |
---|
57 | * |
---|
58 | */ |
---|
59 | |
---|
60 | #define _Attributes_Is_priority( _attribute_set ) \ |
---|
61 | ( (_attribute_set) & RTEMS_PRIORITY ) |
---|
62 | |
---|
63 | /*PAGE |
---|
64 | * |
---|
65 | * _Attributes_Is_binary_semaphore |
---|
66 | * |
---|
67 | */ |
---|
68 | |
---|
69 | #define _Attributes_Is_binary_semaphore( _attribute_set ) \ |
---|
70 | ( (_attribute_set) & RTEMS_BINARY_SEMAPHORE ) |
---|
71 | |
---|
72 | /*PAGE |
---|
73 | * |
---|
74 | * _Attributes_Is_inherit_priority |
---|
75 | * |
---|
76 | */ |
---|
77 | |
---|
78 | #define _Attributes_Is_inherit_priority( _attribute_set ) \ |
---|
79 | ( (_attribute_set) & RTEMS_INHERIT_PRIORITY ) |
---|
80 | |
---|
81 | #endif |
---|
82 | /* end of include file */ |
---|