Skip to contentSkip to conversation

sandbox: add bit manipulation stuff

PATCH Applied Holger Schurig 2 participants 2 messages Jun 26, 2014 Bitops API

lore
Share & tools
lore
#0 lore raw

PATCH 3/4 sandbox: add bit manipulation stuff

The functions are already in the sandbox, just the #defines are missing.

---
 arch/sandbox/include/asm/bitops.h |    7 +++++++
 1 file changed, 7 insertions(+)
arch/sandbox/include/asm/bitops.h +7 -0
index 94646d4..447023d 100644
@@ -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
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Holger Schurig

The functions are already in the sandbox, just the #defines are missing.

Applied this one, thanks

Sascha

Quoted 29 lines
---
 arch/sandbox/include/asm/bitops.h |    7 +++++++
 1 file changed, 7 insertions(+)
arch/sandbox/include/asm/bitops.h +7 -0
index 94646d4..447023d 100644
@@ -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
Signature · 7 lines
1.7.10.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox