XenevaOS
Loading...
Searching...
No Matches
Macros | Functions
sbrmath.c File Reference
#include "sbr.h"
#include "assembly.h"
Include dependency graph for sbrmath.c:

Macros

#define Q28_2   0x20000000 /* Q28: 2.0 */
 
#define Q28_15   0x30000000 /* Q28: 1.5 */
 
#define NUM_ITER_IRN   5
 
#define NUM_TERMS_RPI   5
 
#define LOG2_EXP_INV   0x58b90bfc /* 1/log2(e), Q31 */
 

Functions

int InvRNormalized (int r)
 
int RatioPowInv (int a, int b, int c)
 
int SqrtFix (int q, int fBitsIn, int *fBitsOut)
 

Macro Definition Documentation

◆ LOG2_EXP_INV

#define LOG2_EXP_INV   0x58b90bfc /* 1/log2(e), Q31 */

◆ NUM_ITER_IRN

#define NUM_ITER_IRN   5

◆ NUM_TERMS_RPI

#define NUM_TERMS_RPI   5

◆ Q28_15

#define Q28_15   0x30000000 /* Q28: 1.5 */

◆ Q28_2

#define Q28_2   0x20000000 /* Q28: 2.0 */

Function Documentation

◆ InvRNormalized()

int InvRNormalized ( int  r)

◆ RatioPowInv()

int RatioPowInv ( int  a,
int  b,
int  c 
)

◆ SqrtFix()

int SqrtFix ( int  q,
int  fBitsIn,
int *  fBitsOut 
)