Rose::BitOps
Bit operations on unsigned integers.
Functions
Name |
Description |
Generate a value with all bits set or cleared. |
|
Set or clear the low‐order bits. |
|
Extract a single bit. |
|
Extract a single bit. |
|
Extract part of a value. |
|
Extract part of a value limited by width. |
|
Extend or truncate a value. |
|
Sign extend or truncate a value. |
|
Generate a value with high order bits set. |
|
Generate a value with low order bits set. |
|
Generate a mask. |
|
Generate a mask without affecting other bits. |
|
Most significant bit. |
|
Most significant bit within lsb region. |
|
Number of bits in a type or value. |
|
Generate a single‐bit mask. |
|
Generate a single‐bit mask without affecting the high‐order bits. |
|
Replicate low‐order bits to fill return value. |
|
Replicate low‐order bits to fill region without affecting other bits. |
|
Rotate bits left. |
|
Rotate low‐order bits left without affecting others. |
|
Rotate bits right. |
|
Rotate low‐order bits right without affecting others. |
|
Combine two values based on a bit mask. |
|
Left shift a value. |
|
Left shift part of a value without affecting the rest. |
|
Right shift a value. |
|
Right shift part of a value without affecting the rest. |
|
|
|
Sign extend part of a value to the full width of the src type. |
|
Sign extend part of value without affecting other bits. |
Description
This namespace provides functions that operate at the bit level on unsigned integer types and avoid C/C++ undefined behavior.
Created with MrDocs