28.2.18 __builtin_fbcl

Description

Finds the first bit change from left (Msb) in value. This is useful for dynamic scaling of fixed-point data. An example:

 int32_t result, value;
 result = __builtin_fbcl(value);

might generate:

 fbcl w4, w5

Prototype

int32_t __builtin_fbcl(int32_t value);

Argument

value – Integer number to check for change.

Return Value

Returns a literal value sign extended to represent the number of bits to shift left.

Machine Instruction

fbcl

Error Messages

None