File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 32
32
// Returns UINT_MAX if all the bits in p were already set.
33
33
DISPATCH_ALWAYS_INLINE
34
34
static inline unsigned int
35
- os_atomic_set_first_bit (volatile unsigned long * p , unsigned int max )
35
+ os_atomic_set_first_bit (unsigned long * p , unsigned int max )
36
36
{
37
37
unsigned long val , bit ;
38
38
if (max > (sizeof (val ) * 8 )) {
@@ -82,7 +82,7 @@ os_atomic_set_first_bit(volatile unsigned long *p, unsigned int max)
82
82
83
83
DISPATCH_ALWAYS_INLINE
84
84
static inline unsigned int
85
- os_atomic_set_first_bit (volatile unsigned long * p , unsigned int max_index )
85
+ os_atomic_set_first_bit (unsigned long * p , unsigned int max )
86
86
{
87
87
unsigned int index ;
88
88
unsigned long b , b_masked ;
@@ -94,7 +94,7 @@ os_atomic_set_first_bit(volatile unsigned long *p, unsigned int max_index)
94
94
os_atomic_rmw_loop_give_up (return UINT_MAX );
95
95
}
96
96
index -- ;
97
- if (unlikely (index > max_index )) {
97
+ if (unlikely (index > max )) {
98
98
os_atomic_rmw_loop_give_up (return UINT_MAX );
99
99
}
100
100
b_masked = b | (1UL << index );
You can’t perform that action at this time.
0 commit comments