29.2.45 __builtin_min_16, __builtin_min_32
Description
Force (Signed) Data Range Minimum Limit. Compares a 16-bit or 32-bit signed data value to a minimum signed limit value, both stored in the accumulators. If the data value is less than the minimum, the minimum value is returned. If the data value is greater than or equal to the minimum value, the data value is returned.
Prototype
int16_t __builtin_min_16(int16_t value1, int16_t value2);
int32_t __builtin_min_32(int32_t value1, int32_t value2);
Arguments
value1 – Minimum allowable value
value2 – Data value to clamp
Return Value
Returns value1 or value2 based on
Description.
Machine Instruction
min.w
min.l
Error Messages
None
