IQMathLibrary  1.0
Functions
_IQNdiv.c File Reference

Detailed Description

Functions to divide two values of IQN type.



#include "_IQNdiv.h"
Include dependency graph for _IQNdiv.c:

Functions

int32_t _IQ31div (int32_t a, int32_t b)
 Divides two values of IQ31 format. More...
 
int32_t _IQ30div (int32_t a, int32_t b)
 Divides two values of IQ30 format. More...
 
int32_t _IQ29div (int32_t a, int32_t b)
 Divides two values of IQ29 format. More...
 
int32_t _IQ28div (int32_t a, int32_t b)
 Divides two values of IQ28 format. More...
 
int32_t _IQ27div (int32_t a, int32_t b)
 Divides two values of IQ27 format. More...
 
int32_t _IQ26div (int32_t a, int32_t b)
 Divides two values of IQ26 format. More...
 
int32_t _IQ25div (int32_t a, int32_t b)
 Divides two values of IQ25 format. More...
 
int32_t _IQ24div (int32_t a, int32_t b)
 Divides two values of IQ24 format. More...
 
int32_t _IQ23div (int32_t a, int32_t b)
 Divides two values of IQ23 format. More...
 
int32_t _IQ22div (int32_t a, int32_t b)
 Divides two values of IQ22 format. More...
 
int32_t _IQ21div (int32_t a, int32_t b)
 Divides two values of IQ21 format. More...
 
int32_t _IQ20div (int32_t a, int32_t b)
 Divides two values of IQ20 format. More...
 
int32_t _IQ19div (int32_t a, int32_t b)
 Divides two values of IQ19 format. More...
 
int32_t _IQ18div (int32_t a, int32_t b)
 Divides two values of IQ18 format. More...
 
int32_t _IQ17div (int32_t a, int32_t b)
 Divides two values of IQ17 format. More...
 
int32_t _IQ16div (int32_t a, int32_t b)
 Divides two values of IQ16 format. More...
 
int32_t _IQ15div (int32_t a, int32_t b)
 Divides two values of IQ15 format. More...
 
int32_t _IQ14div (int32_t a, int32_t b)
 Divides two values of IQ14 format. More...
 
int32_t _IQ13div (int32_t a, int32_t b)
 Divides two values of IQ13 format. More...
 
int32_t _IQ12div (int32_t a, int32_t b)
 Divides two values of IQ12 format. More...
 
int32_t _IQ11div (int32_t a, int32_t b)
 Divides two values of IQ11 format. More...
 
int32_t _IQ10div (int32_t a, int32_t b)
 Divides two values of IQ10 format. More...
 
int32_t _IQ9div (int32_t a, int32_t b)
 Divides two values of IQ9 format. More...
 
int32_t _IQ8div (int32_t a, int32_t b)
 Divides two values of IQ8 format. More...
 
int32_t _IQ7div (int32_t a, int32_t b)
 Divides two values of IQ7 format. More...
 
int32_t _IQ6div (int32_t a, int32_t b)
 Divides two values of IQ6 format. More...
 
int32_t _IQ5div (int32_t a, int32_t b)
 Divides two values of IQ5 format. More...
 
int32_t _IQ4div (int32_t a, int32_t b)
 Divides two values of IQ4 format. More...
 
int32_t _IQ3div (int32_t a, int32_t b)
 Divides two values of IQ3 format. More...
 
int32_t _IQ2div (int32_t a, int32_t b)
 Divides two values of IQ2 format. More...
 
int32_t _IQ1div (int32_t a, int32_t b)
 Divides two values of IQ1 format. More...
 
int32_t _IQ0div (int32_t a, int32_t b)
 Divides two values of IQ0 format. More...
 
uint32_t _UIQ31div (uint32_t a, uint32_t b)
 Divides two values of IQ31 format, without sign checks. More...
 

Function Documentation

§ _IQ31div()

int32_t _IQ31div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ31 format.

Parameters
aIQ31 type value numerator to be divided.
bIQ31 type value denominator to divide by.
Returns
IQ31 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ30div()

int32_t _IQ30div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ30 format.

Parameters
aIQ30 type value numerator to be divided.
bIQ30 type value denominator to divide by.
Returns
IQ30 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ29div()

int32_t _IQ29div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ29 format.

Parameters
aIQ29 type value numerator to be divided.
bIQ29 type value denominator to divide by.
Returns
IQ29 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ28div()

int32_t _IQ28div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ28 format.

Parameters
aIQ28 type value numerator to be divided.
bIQ28 type value denominator to divide by.
Returns
IQ28 type result of the multiplication.

Referenced by __IQNatan2(), and _IQ0div().

§ _IQ27div()

int32_t _IQ27div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ27 format.

Parameters
aIQ27 type value numerator to be divided.
bIQ27 type value denominator to divide by.
Returns
IQ27 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ26div()

int32_t _IQ26div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ26 format.

Parameters
aIQ26 type value numerator to be divided.
bIQ26 type value denominator to divide by.
Returns
IQ26 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ25div()

int32_t _IQ25div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ25 format.

Parameters
aIQ25 type value numerator to be divided.
bIQ25 type value denominator to divide by.
Returns
IQ25 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ24div()

int32_t _IQ24div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ24 format.

Parameters
aIQ24 type value numerator to be divided.
bIQ24 type value denominator to divide by.
Returns
IQ24 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ23div()

int32_t _IQ23div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ23 format.

Parameters
aIQ23 type value numerator to be divided.
bIQ23 type value denominator to divide by.
Returns
IQ23 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ22div()

int32_t _IQ22div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ22 format.

Parameters
aIQ22 type value numerator to be divided.
bIQ22 type value denominator to divide by.
Returns
IQ22 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ21div()

int32_t _IQ21div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ21 format.

Parameters
aIQ21 type value numerator to be divided.
bIQ21 type value denominator to divide by.
Returns
IQ21 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ20div()

int32_t _IQ20div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ20 format.

Parameters
aIQ20 type value numerator to be divided.
bIQ20 type value denominator to divide by.
Returns
IQ20 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ19div()

int32_t _IQ19div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ19 format.

Parameters
aIQ19 type value numerator to be divided.
bIQ19 type value denominator to divide by.
Returns
IQ19 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ18div()

int32_t _IQ18div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ18 format.

Parameters
aIQ18 type value numerator to be divided.
bIQ18 type value denominator to divide by.
Returns
IQ18 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ17div()

int32_t _IQ17div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ17 format.

Parameters
aIQ17 type value numerator to be divided.
bIQ17 type value denominator to divide by.
Returns
IQ17 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ16div()

int32_t _IQ16div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ16 format.

Parameters
aIQ16 type value numerator to be divided.
bIQ16 type value denominator to divide by.
Returns
IQ16 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ15div()

int32_t _IQ15div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ15 format.

Parameters
aIQ15 type value numerator to be divided.
bIQ15 type value denominator to divide by.
Returns
IQ15 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ14div()

int32_t _IQ14div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ14 format.

Parameters
aIQ14 type value numerator to be divided.
bIQ14 type value denominator to divide by.
Returns
IQ14 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ13div()

int32_t _IQ13div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ13 format.

Parameters
aIQ13 type value numerator to be divided.
bIQ13 type value denominator to divide by.
Returns
IQ13 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ12div()

int32_t _IQ12div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ12 format.

Parameters
aIQ12 type value numerator to be divided.
bIQ12 type value denominator to divide by.
Returns
IQ12 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ11div()

int32_t _IQ11div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ11 format.

Parameters
aIQ11 type value numerator to be divided.
bIQ11 type value denominator to divide by.
Returns
IQ11 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ10div()

int32_t _IQ10div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ10 format.

Parameters
aIQ10 type value numerator to be divided.
bIQ10 type value denominator to divide by.
Returns
IQ10 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ9div()

int32_t _IQ9div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ9 format.

Parameters
aIQ9 type value numerator to be divided.
bIQ9 type value denominator to divide by.
Returns
IQ9 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ8div()

int32_t _IQ8div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ8 format.

Parameters
aIQ8 type value numerator to be divided.
bIQ8 type value denominator to divide by.
Returns
IQ8 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ7div()

int32_t _IQ7div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ7 format.

Parameters
aIQ7 type value numerator to be divided.
bIQ7 type value denominator to divide by.
Returns
IQ7 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ6div()

int32_t _IQ6div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ6 format.

Parameters
aIQ6 type value numerator to be divided.
bIQ6 type value denominator to divide by.
Returns
IQ6 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ5div()

int32_t _IQ5div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ5 format.

Parameters
aIQ5 type value numerator to be divided.
bIQ5 type value denominator to divide by.
Returns
IQ5 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ4div()

int32_t _IQ4div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ4 format.

Parameters
aIQ4 type value numerator to be divided.
bIQ4 type value denominator to divide by.
Returns
IQ4 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ3div()

int32_t _IQ3div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ3 format.

Parameters
aIQ3 type value numerator to be divided.
bIQ3 type value denominator to divide by.
Returns
IQ3 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ2div()

int32_t _IQ2div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ2 format.

Parameters
aIQ2 type value numerator to be divided.
bIQ2 type value denominator to divide by.
Returns
IQ2 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ1div()

int32_t _IQ1div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ1 format.

Parameters
aIQ1 type value numerator to be divided.
bIQ1 type value denominator to divide by.
Returns
IQ1 type result of the multiplication.

Referenced by _IQ0div().

§ _IQ0div()

int32_t _IQ0div ( int32_t  a,
int32_t  b 
)

Divides two values of IQ0 format.

Parameters
aIQ0 type value numerator to be divided.
bIQ0 type value denominator to divide by.
Returns
IQ0 type result of the multiplication.

References _IQ10div(), _IQ11div(), _IQ12div(), _IQ13div(), _IQ14div(), _IQ15div(), _IQ16div(), _IQ17div(), _IQ18div(), _IQ19div(), _IQ1div(), _IQ20div(), _IQ21div(), _IQ22div(), _IQ23div(), _IQ24div(), _IQ25div(), _IQ26div(), _IQ27div(), _IQ28div(), _IQ29div(), _IQ2div(), _IQ30div(), _IQ31div(), _IQ3div(), _IQ4div(), _IQ5div(), _IQ6div(), _IQ7div(), _IQ8div(), and _IQ9div().

§ _UIQ31div()

uint32_t _UIQ31div ( uint32_t  a,
uint32_t  b 
)

Divides two values of IQ31 format, without sign checks.

Parameters
aIQ31 type value numerator to be divided.
bIQ31 type value denominator to divide by.
Returns
IQ31 type result of the multiplication.

Referenced by __IQNatan2().

© Copyright 1995-2023, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale