![]() |
AI Engine-ML v2 Intrinsics User Guide
v2025.1
|
Functions | |
float | _sqrtf (float a) |
Square Root. | |
float | inv (float a) |
Inverse. | |
int | inv (int a, int sft1, int sft2) |
Inverse. | |
float | invsqrt (float a) |
Inverse Square Root. | |
int | invsqrt (int a, int sft1, int sft2) |
Inverse Square Root. | |
int | sqrt (int a, int sft1, int sft2) |
Square Root. | |
Square Root.
a | Single precision floating-point input value |
Inverse.
a | Single precision floating-point input value |
int inv | ( | int | a, |
int | sft1, | ||
int | sft2 ) |
Inverse.
Equivalent to float2fix(inv(fix2float(a,sft1)),sft2).
a | Fixed-point input value |
sft1 | Decimal point of input value |
sft2 | Decimal point of output value |
Inverse Square Root.
a | Single precision floating-point input value |
int invsqrt | ( | int | a, |
int | sft1, | ||
int | sft2 ) |
Inverse Square Root.
Equivalent to float2fix(invsqrt(fix2float(a,sft1)),sft2).
a | Fixed-point input value |
sft1 | Decimal point of input value |
sft2 | Decimal point of output value |
int sqrt | ( | int | a, |
int | sft1, | ||
int | sft2 ) |
Square Root.
Equivalent to float2fix(sqrt(fix2float(a,sft1)),sft2).
a | Fixed-point input value |
sft1 | Decimal point of input value |
sft2 | Decimal point of output value |