| |||
Home > NEON and VFP Programming > Saturating NEON instructions |
Saturating instructions saturate the result to the value of
the upper limit or lower limit if the result overflows or underflows.
The saturation limits depend on the datatype of the instruction. See Table 39 for the ranges
that NEON saturating instructions saturate to, where x
is
the result of the operation.
Table 39. NEON saturation ranges
Data type | Saturation range of x |
---|---|
S8 | -27 <= x <
27 |
S16 | -215 <= x <
215 |
S32 | -231 <= x <
231 |
S64 | -263 <= x <
263 |
U8 | 0 <= x < 28 |
U16 | 0 <= x < 216 |
U32 | 0 <= x < 232 |
U64 | 0 <= x < 264 |
Saturating instructions are specified using a Q
prefix
between the V
and the instruction mnemonic.
Assembler Reference: