28.2.30 __builtin_fmax

Description

Force (Signed) Data Range Maximum Limit. Compares a 16-bit signed data value to a maximum signed limit value.

If the data value is greater than the maximum, the data value is set to the maximum value.

If the data value is less than or equal to the maximum value, the data value is not changed.

Prototype

int16_t __builtin_fmax(int16_t value, int16_t high);

Arguments

value – Data value

high – Maximum limit value

Return Value

Returns value limited by high.

Machine Instruction

fmax

Error Messages

None