28.2.26 __builtin_fbcl

Description

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

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

might generate:

 fbcl w4, w5

Prototype

int16_t __builtin_fbcl(int16_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