| |||
| Home > Compiler-specific Features > Instruction intrinsics > __usat | |||
This intrinsic inserts a USAT instruction into
the instruction stream generated by the compiler. It enables you
to saturate an unsigned value from within your C or C++ code.
int __usat(unsigned intval, unsigned intsat)
Where:
valIs the value to be saturated.
satIs the bit position to saturate to.
must be
in the range 0 to 31.usat
The compiler does not recognize the __usat intrinsic
when compiling for a target that does not support the USAT instruction.
The compiler generates either a warning or an error in this case.
SSAT and USAT in the Assembler Guide.