diff options
| -rw-r--r-- | deps/sysobj_early/include/cpubits.h | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/deps/sysobj_early/include/cpubits.h b/deps/sysobj_early/include/cpubits.h index 15686510..2d8fe8a6 100644 --- a/deps/sysobj_early/include/cpubits.h +++ b/deps/sysobj_early/include/cpubits.h @@ -18,6 +18,9 @@   *   */ +#ifndef _CPUBITS_H_ +#define _CPUBITS_H_ +  #include <stdint.h>  typedef uint32_t cpubits; @@ -32,3 +35,5 @@ char *cpubits_to_str(cpubits *bits, char *str, int max_len);  #define CPUBIT_SET(BITS, BIT) ((BITS)[(BIT)/32] |= (1 << (BIT)%32))  #define CPUBIT_GET(BITS, BIT) (((BITS)[(BIT)/32] & (1 << (BIT)%32)) >> (BIT)%32)  #define CPUBITS_CLEAR(BITS) memset((BITS), 0, CPUBITS_SIZE) + +#endif | 
