mcexec: memory policy control by environmental variable
Refs: #1470 Change-Id: I3d556cae90d31d81572b1c4e5c680e826577d428
This commit is contained in:
11
lib/include/bitops-test_bit.h
Normal file
11
lib/include/bitops-test_bit.h
Normal file
@ -0,0 +1,11 @@
|
||||
#ifndef INCLUDE_BITOPS_TEST_BIT_H
|
||||
#define INCLUDE_BITOPS_TEST_BIT_H
|
||||
|
||||
static inline int test_bit(int nr, const void *addr)
|
||||
{
|
||||
const uint32_t *p = (const uint32_t *)addr;
|
||||
|
||||
return ((1UL << (nr & 31)) & (p[nr >> 5])) != 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user