| AI Engine Intrinsics User Guide (v2026.1)

Loading...
Searching...
No Matches
Topics
Mode Settings
Intrinsics » Vector Operations » Configuration

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

## Overview

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

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

## 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_pos_inf 2
| Round halfway towards positive infinity.
#define | rnd_neg_inf 3
| Round halfway towards negative infinity.
#define | rnd_sym_inf 4
| Round halfway towards infinity (away from zero)
#define | rnd_sym_zero 5
| Round halfway towards zero (away from infinity)
#define | rnd_conv_even 6
| Round halfway towards nearest even number.
#define | rnd_conv_odd 7
| Round halfway towards nearest odd number.

## Macro Definition Documentation

## ◆ rnd_ceil

#define rnd_ceil 1

No rounding - Always round up (towards positive infinity)

## ◆ rnd_conv_even

#define rnd_conv_even 6

Round halfway towards nearest even number.

## ◆ rnd_conv_odd

#define rnd_conv_odd 7

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 3

Round halfway towards negative infinity.

## ◆ rnd_pos_inf

#define rnd_pos_inf 2

Round halfway towards positive infinity.

## ◆ rnd_sym_inf

#define rnd_sym_inf 4

Round halfway towards infinity (away from zero)

## ◆ rnd_sym_zero

#define rnd_sym_zero 5

Round halfway towards zero (away from infinity)