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