sandbox: add bit manipulation stuff
The functions are already in the sandbox, just the #defines are missing. Signed-off-by: Holger Schurig <holgerschurig@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
c9e2e08edc
commit
eab148a80c
|
@ -12,4 +12,11 @@
|
|||
#include <asm-generic/bitops/hweight.h>
|
||||
#include <asm-generic/bitops/ops.h>
|
||||
|
||||
#define set_bit(x, y) __set_bit(x, y)
|
||||
#define clear_bit(x, y) __clear_bit(x, y)
|
||||
#define change_bit(x, y) __change_bit(x, y)
|
||||
#define test_and_set_bit(x, y) __test_and_set_bit(x, y)
|
||||
#define test_and_clear_bit(x, y) __test_and_clear_bit(x, y)
|
||||
#define test_and_change_bit(x, y) __test_and_change_bit(x, y)
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue