Changes in uspace/lib/c/include/bitops.h [48197c1:8d2dd7f2] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/bitops.h
r48197c1 r8d2dd7f2 54 54 #define BIT_RANGE_EXTRACT(type, hi, lo, value) \ 55 55 (((value) >> (lo)) & BIT_RRANGE(type, (hi) - (lo) + 1)) 56 57 /** Insert @a value between bits @a hi .. @a lo. */58 #define BIT_RANGE_INSERT(type, hi, lo, value) \59 (((value) & BIT_RRANGE(type, (hi) - (lo) + 1)) << (lo))60 56 61 57 /** Return position of first non-zero bit from left (i.e. [log_2(arg)]).
Note:
See TracChangeset
for help on using the changeset viewer.