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

Loading...
Searching...
No Matches
Functions
Scalar nonlinear functions
Nonlinear functions

## 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.

## Detailed Description

## Function Documentation

## ◆ _sqrtf()

float _sqrtf | ( | float | a | ) |

Square Root.

Parameters

  a | Single precision floating-point input value

Returns
  Single precision floating-point result

## ◆ inv() [1/2]

float inv | ( | float | a | ) |

Inverse.

Parameters

  a | Single precision floating-point input value

Returns
  Single precision floating point inverse

## ◆ inv() [2/2]

int inv | ( | int | a,
|  | int | sft1,
|  | int | sft2 )

Inverse.

Equivalent to float2fix(inv(fix2float(a,sft1)),sft2).

Parameters

  a | Fixed-point input value
  sft1 | Decimal point of input value
  sft2 | Decimal point of output value

Returns
  Fixed-point result

## ◆ invsqrt() [1/2]

float invsqrt | ( | float | a | ) |

Inverse Square Root.

Parameters

  a | Single precision floating-point input value

Returns
  Single precision floating point inverse square root

## ◆ invsqrt() [2/2]

int invsqrt | ( | int | a,
|  | int | sft1,
|  | int | sft2 )

Inverse Square Root.

Equivalent to float2fix(invsqrt(fix2float(a,sft1)),sft2).

Parameters

  a | Fixed-point input value
  sft1 | Decimal point of input value
  sft2 | Decimal point of output value

Returns
  Fixed-point result

## ◆ sqrt()

int sqrt | ( | int | a,
|  | int | sft1,
|  | int | sft2 )

Square Root.

Equivalent to float2fix(sqrt(fix2float(a,sft1)),sft2).

Parameters

  a | Fixed-point input value
  sft1 | Decimal point of input value
  sft2 | Decimal point of output value

Returns
  Fixed-point result