diff options
author | Holger Schurig <holgerschurig@gmail.com> | 2014-06-26 10:49:16 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-06-26 21:24:41 +0200 |
commit | eab148a80c5ba33aeec4edd9c97a7facaecbecf3 (patch) | |
tree | 06cd4003e18daaa3b16549a49806da02289a1874 | |
parent | c9e2e08edcdce4205821226817686e62dc349eab (diff) | |
download | barebox-eab148a80c5ba33aeec4edd9c97a7facaecbecf3.tar.gz barebox-eab148a80c5ba33aeec4edd9c97a7facaecbecf3.tar.xz |
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>
-rw-r--r-- | arch/sandbox/include/asm/bitops.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/bitops.h b/arch/sandbox/include/asm/bitops.h index 94646d4d0d..447023da63 100644 --- a/arch/sandbox/include/asm/bitops.h +++ b/arch/sandbox/include/asm/bitops.h @@ -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 |