Functions that generate specific Cortex-A CPU Instructions. More...
Functions | |
uint32_t | __REV (uint32_t value) |
Reverse byte order (32 bit) | |
uint16_t | __REV16 (uint16_t value) |
Reverse byte order (16 bit) | |
int32_t | __REVSH (int32_t value) |
Reverse byte order (16 bit) | |
uint32_t | __ROR (uint32_t op1, uint32_t op2) |
Rotate Right in unsigned value (32 bit) | |
uint32_t | __RBIT (uint32_t value) |
Reverse bit order of value. | |
uint8_t | __CLZ (uint32_t value) |
Count leading zeros. | |
Functions that generate specific Cortex-A CPU Instructions.
uint8_t __CLZ | ( | uint32_t | value | ) |
Count leading zeros.
Counts the number of leading zeros of a data value.
[in] | value | Value to count the leading zeros |
uint32_t __RBIT | ( | uint32_t | value | ) |
Reverse bit order of value.
Reverses the bit order of the given value.
[in] | value | Value to reverse |
uint32_t __REV | ( | uint32_t | value | ) |
Reverse byte order (32 bit)
Reverses the byte order in unsigned integer value. For example, 0x12345678 becomes 0x78563412.
[in] | value | Value to reverse |
uint16_t __REV16 | ( | uint16_t | value | ) |
Reverse byte order (16 bit)
Reverses the byte order within each halfword of a word. For example, 0x12345678 becomes 0x34127856.
[in] | value | Value to reverse |
int32_t __REVSH | ( | int32_t | value | ) |
Reverse byte order (16 bit)
Reverses the byte order in a 16-bit value and returns the signed 16-bit result. For example, 0x0080 becomes 0x8000.
[in] | value | Value to reverse |
uint32_t __ROR | ( | uint32_t | op1, |
uint32_t | op2 | ||
) |
Rotate Right in unsigned value (32 bit)
Rotate Right (immediate) provides the value of the contents of a register rotated by a variable number of bits.
[in] | op1 | Value to rotate |
[in] | op2 | Number of Bits to rotate |