Converts the float type to the int32_t type, and supports multiple rounding modes.
RINT rounding mode: round half to even
ROUND rounding mode: round half up
FLOOR rounding mode: round toward negative infinity
CEIL rounding mode: round toward positive infinity
TRUNC rounding mode: round toward zero
Non-saturation mode:
- When the input data exceeds the maximum or minimum value of the output type, the result is truncated to the data width of the target format.
- When the input data is +/-inf, the maximum or minimum value of the output type is returned.
- When the input data is nan, 0 is returned.
Saturation mode:
- When the input data exceeds the maximum or minimum value of the output type, the corresponding maximum or minimum value of the output type is returned.
- When the input data is +/-inf, the maximum or minimum value of the output type is returned.
- When the input data is nan, 0 is returned.
[object Object]
For detailed descriptions of vector data registers and mask registers, see .
None
PIPE_V
- To enable the saturation mode and non-saturation mode, the ctrl register must be configured. For detailed descriptions of the ctrl register, see .
[object Object]