Page MenuHomeFreeBSD

D27891.diff
No OneTemporary

D27891.diff

diff --git a/sys/sys/bitset.h b/sys/sys/bitset.h
--- a/sys/sys/bitset.h
+++ b/sys/sys/bitset.h
@@ -193,11 +193,13 @@
#define BIT_TEST_CLR_ATOMIC(_s, n, p) \
(atomic_testandclear_long( \
- &(p)->__bits[__bitset_word((_s), (n))], (n)) != 0)
+ &(p)->__bits[__bitset_word((_s), (n))], \
+ (n) % _BITSET_BITS) != 0)
#define BIT_TEST_SET_ATOMIC(_s, n, p) \
(atomic_testandset_long( \
- &(p)->__bits[__bitset_word((_s), (n))], (n)) != 0)
+ &(p)->__bits[__bitset_word((_s), (n))], \
+ (n) % _BITSET_BITS) != 0)
/* Convenience functions catering special cases. */
#define BIT_AND_ATOMIC(_s, d, s) do { \

File Metadata

Mime Type
text/plain
Expires
Tue, Jan 21, 4:47 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16016755
Default Alt Text
D27891.diff (658 B)

Event Timeline