Changeset 473 for trunk/kernel/libk/bits.c
- Timestamp:
- Aug 21, 2018, 6:01:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/libk/bits.c
r457 r473 81 81 if((len + bit) >= 32) 82 82 { 83 val = (bit == 0) ? 0xFFFFFFFF : (1 << (32 - bit)) - 1; 83 if( bit == 0 ) val = 0xFFFFFFFF; 84 else val = (uint32_t)((1 << (32 - bit)) - 1); 85 84 86 bitmap[word] |= (val << bit); 85 87 word++; … … 108 110 if((len + bit) >= 32) 109 111 { 110 val = (bit == 0) ? 0xFFFFFFFF : (1 << (32 - bit)) - 1; 112 if( bit == 0 ) val = 0xFFFFFFFF; 113 else val = (uint32_t)((1 << (32 - bit)) - 1); 114 111 115 bitmap[word] &= ~(val << bit); 112 116 word++;
Note: See TracChangeset
for help on using the changeset viewer.