Documentation
Tools for embedded systems
Loading...
Searching...
No Matches
Fixed-Point Q16.16 math

Fixed-point Q16.16 math library. More...

Classes

class  qlibs::fp16
 Fixed-point Q16.16 type with width of exactly 32 bits. More...
 

Variables

const fp16 qlibs::FP_E
 e The base of natural logarithms as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_LOG2E
 log2(e) The base 2 logarithm of e as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_LOG10E
 log10(e) The base 10 logarithm of e as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_LN2
 ln(2) The natural logarithm of 2 as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_LN10
 ln(10) The natural logarithm of 10 as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_PI
 pi The circumference of a circle with diameter 1 as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_PI_2
 pi/2 Half of pi as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_PI_4
 pi/4 A quarter of pi as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_1_PI
 1/pi The inverse of pi as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_2_PI
 2/pi Twice the inverse of pi as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_2_SQRTPI
 2/sqrt(pi) The inverse of the square root of pi as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_SQRT2
 sqrt(2) The square root of 2 as a Fixed-point Q16.16 value.
 
const fp16 qlibs::FP_SQRT1_2
 1/sqrt(2) The inverse of the square root of 2 as a Fixed-point Q16.16 value.
 

Detailed Description

Fixed-point Q16.16 math library.

For a brief description of this module, please read Fixed-Point Q16.16 library

For a brief description of this module, please read Fixed-Point Q16.16 library

Variable Documentation

◆ FP_1_PI

const fp16 qlibs::FP_1_PI

1/pi The inverse of pi as a Fixed-point Q16.16 value.

◆ FP_2_PI

const fp16 qlibs::FP_2_PI

2/pi Twice the inverse of pi as a Fixed-point Q16.16 value.

◆ FP_2_SQRTPI

const fp16 qlibs::FP_2_SQRTPI

2/sqrt(pi) The inverse of the square root of pi as a Fixed-point Q16.16 value.

◆ FP_E

const fp16 qlibs::FP_E

e The base of natural logarithms as a Fixed-point Q16.16 value.

◆ FP_LN10

const fp16 qlibs::FP_LN10

ln(10) The natural logarithm of 10 as a Fixed-point Q16.16 value.

◆ FP_LN2

const fp16 qlibs::FP_LN2

ln(2) The natural logarithm of 2 as a Fixed-point Q16.16 value.

◆ FP_LOG10E

const fp16 qlibs::FP_LOG10E

log10(e) The base 10 logarithm of e as a Fixed-point Q16.16 value.

◆ FP_LOG2E

const fp16 qlibs::FP_LOG2E

log2(e) The base 2 logarithm of e as a Fixed-point Q16.16 value.

◆ FP_PI

const fp16 qlibs::FP_PI

pi The circumference of a circle with diameter 1 as a Fixed-point Q16.16 value.

◆ FP_PI_2

const fp16 qlibs::FP_PI_2

pi/2 Half of pi as a Fixed-point Q16.16 value.

◆ FP_PI_4

const fp16 qlibs::FP_PI_4

pi/4 A quarter of pi as a Fixed-point Q16.16 value.

◆ FP_SQRT1_2

const fp16 qlibs::FP_SQRT1_2

1/sqrt(2) The inverse of the square root of 2 as a Fixed-point Q16.16 value.

◆ FP_SQRT2

const fp16 qlibs::FP_SQRT2

sqrt(2) The square root of 2 as a Fixed-point Q16.16 value.