| AI Engine-ML v2 Intrinsics User Guide (v2026.1)

Loading...
Searching...
No Matches
Topics
Mode Settings
Scalar Operations » Configuration

## Topics
| Control registers
| Intrinsics to set, get and clear the control registers.
| Status registers
| Intrinsics to set,get and clear the status registers.

## Rounding Modes
#define | rnd_floor 0
| No rounding - Truncate LSB, always round down (towards negative infinity)
#define | rnd_ceil 1
| No rounding - Always round up (towards positive infinity)
#define | rnd_sym_floor 2
| No rounding - Truncate LSB, always round towards 0.
#define | rnd_sym_ceil 3
| No rounding - Always round up towards infinity.
#define | rnd_neg_inf 8
| Round halfway towards negative infinity.
#define | rnd_pos_inf 9
| Round halfway towards positive infinity.
#define | rnd_sym_zero 10
| Round halfway towards zero (away from infinity)
#define | rnd_sym_inf 11
| Round halfway towards infinity (away from zero)
#define | rnd_conv_even 12
| Round halfway towards nearest even number.
#define | rnd_conv_odd 13
| Round halfway towards nearest odd number.

## Detailed Description

Mode setting intrinsics to get and set bits in the control and status register.

The rounding and saturation in the srs intrinsics (Shift-Round-Saturate) is controlled through special mode setting commands.

## Macro Definition Documentation

## ◆ rnd_ceil

#define rnd_ceil 1

No rounding - Always round up (towards positive infinity)

## ◆ rnd_conv_even

#define rnd_conv_even 12

Round halfway towards nearest even number.

## ◆ rnd_conv_odd

#define rnd_conv_odd 13

Round halfway towards nearest odd number.

## ◆ rnd_floor

#define rnd_floor 0

No rounding - Truncate LSB, always round down (towards negative infinity)

## ◆ rnd_neg_inf

#define rnd_neg_inf 8

Round halfway towards negative infinity.

## ◆ rnd_pos_inf

#define rnd_pos_inf 9

Round halfway towards positive infinity.

## ◆ rnd_sym_ceil

#define rnd_sym_ceil 3

No rounding - Always round up towards infinity.

## ◆ rnd_sym_floor

#define rnd_sym_floor 2

No rounding - Truncate LSB, always round towards 0.

## ◆ rnd_sym_inf

#define rnd_sym_inf 11

Round halfway towards infinity (away from zero)

## ◆ rnd_sym_zero

#define rnd_sym_zero 10

Round halfway towards zero (away from infinity)