diff options
author | Burt P <pburt0@gmail.com> | 2020-01-01 00:05:24 -0600 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2020-01-03 09:33:06 -0800 |
commit | 55eb5de05921238cb7992fe76334553356bd3d9a (patch) | |
tree | 1ae5910695c6e8a51806b220a7f20cd224bd0f05 /deps/sysobj_early | |
parent | 46f09cf3660481655c945125c950e5efff3a2f8f (diff) |
cpubits.h header guard
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'deps/sysobj_early')
-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 |