File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3232// Returns UINT_MAX if all the bits in p were already set.
3333DISPATCH_ALWAYS_INLINE
3434static 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 )
3636{
3737 unsigned long val , bit ;
3838 if (max > (sizeof (val ) * 8 )) {
@@ -82,7 +82,7 @@ os_atomic_set_first_bit(volatile unsigned long *p, unsigned int max)
8282
8383DISPATCH_ALWAYS_INLINE
8484static 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 )
8686{
8787 unsigned int index ;
8888 unsigned long b , b_masked ;
@@ -94,7 +94,7 @@ os_atomic_set_first_bit(volatile unsigned long *p, unsigned int max_index)
9494 os_atomic_rmw_loop_give_up (return UINT_MAX );
9595 }
9696 index -- ;
97- if (unlikely (index > max_index )) {
97+ if (unlikely (index > max )) {
9898 os_atomic_rmw_loop_give_up (return UINT_MAX );
9999 }
100100 b_masked = b | (1UL << index );
You can’t perform that action at this time.
0 commit comments