AI Engine Intrinsics User Guide
(AIE) v(2024.1)
|
Support for converting floating-point vectors to fixed-point vectors and fixed-point vectors to floating-point vectors. More...
Support for converting floating-point vectors to fixed-point vectors and fixed-point vectors to floating-point vectors.
These intrinsics can generate exceptions, for more information you can go here.
Functions | |
v8float | fix2float (v8int32 ivec, int sft) |
Fixed-point to Floating-point conversion with scaling. | |
v8float | fix2float (v8int32 ivec) |
Fixed-point to Floating-point conversion without scaling. | |
v8int32 | float2fix (v8float v, int sft) |
Floating-point to Fixed-point conversion with scaling. | |
v8int32 | float2fix (v8float v) |
Floating-point to Fixed-point conversion without scaling. | |
v8float fix2float | ( | v8int32 | ivec, |
int | sft | ||
) |
Fixed-point to Floating-point conversion with scaling.
n | Integer input value |
sft | Binary point of input value. Range [-32:31]. |
This is a vectorized version of fix2float(int n, int sft)
v8float fix2float | ( | v8int32 | ivec | ) |
Fixed-point to Floating-point conversion without scaling.
n | Integer input value |
This is a vectorized version of fix2float(int n)
v8int32 float2fix | ( | v8float | v, |
int | sft | ||
) |
Floating-point to Fixed-point conversion with scaling.
n | Floating point input value |
sft | Binary point of output value. Range [-32:31]. |
This is a vectorized version of float2fix(float n, int sft)
v8int32 float2fix | ( | v8float | v | ) |
Floating-point to Fixed-point conversion without scaling.
n | Floating point input value |
This is a vectorized version of float2fix(float n)