PandA-2024.02
Functions | Variables
fixedptc.c File Reference
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdint.h>
#include "fixedptc.h"
Include dependency graph for fixedptc.c:

Go to the source code of this file.

Functions

fixedpt fixedpt_mul (fixedpt A, fixedpt B)
 
fixedpt fixedpt_div (fixedpt A, fixedpt B)
 
void fixedpt_str (fixedpt A, char *str, int max_dec)
 Convert the given fixedpt number to a decimal string. More...
 
char * fixedpt_cstr (const fixedpt A, const int max_dec)
 
fixedpt fixedpt_sqrt (fixedpt A)
 
fixedpt fixedpt_sin (fixedpt fp)
 
fixedpt fixedpt_cos (fixedpt A)
 
fixedpt fixedpt_tan (fixedpt A)
 
fixedpt fixedpt_exp (fixedpt fp)
 
fixedpt fixedpt_ln (fixedpt x)
 
fixedpt fixedpt_log (fixedpt x, fixedpt base)
 
fixedpt fixedpt_pow (fixedpt n, fixedpt exp)
 

Variables

char str [25] = {0}
 

Function Documentation

◆ fixedpt_cos()

fixedpt fixedpt_cos ( fixedpt  A)

Definition at line 162 of file fixedptc.c.

Referenced by fixedpt_tan(), and get_two_normal_fixed().

Here is the caller graph for this function:

◆ fixedpt_cstr()

char* fixedpt_cstr ( const fixedpt  A,
const int  max_dec 
)

Definition at line 88 of file fixedptc.c.

◆ fixedpt_div()

fixedpt fixedpt_div ( fixedpt  A,
fixedpt  B 
)

Definition at line 17 of file fixedptc.c.

Referenced by asset_path_fixed_simplified(), fixedpt_cstr(), fixedpt_exp(), fixedpt_ln(), fixedpt_log(), fixedpt_sqrt(), fixedpt_tan(), and processPhoton().

Here is the caller graph for this function:

◆ fixedpt_exp()

fixedpt fixedpt_exp ( fixedpt  fp)

Definition at line 174 of file fixedptc.c.

Referenced by asset_path_fixed_simplified(), and fixedpt_pow().

Here is the caller graph for this function:

◆ fixedpt_ln()

fixedpt fixedpt_ln ( fixedpt  x)

Definition at line 259 of file fixedptc.c.

Referenced by fixedpt_log(), fixedpt_pow(), get_two_normal_fixed(), and processPhoton().

Here is the caller graph for this function:

◆ fixedpt_log()

fixedpt fixedpt_log ( fixedpt  x,
fixedpt  base 
)

Definition at line 298 of file fixedptc.c.

◆ fixedpt_mul()

fixedpt fixedpt_mul ( fixedpt  A,
fixedpt  B 
)

Definition at line 11 of file fixedptc.c.

Referenced by asset_path_fixed_simplified(), fixedpt_exp(), fixedpt_ln(), fixedpt_pow(), fixedpt_sin(), get_two_normal_fixed(), and processPhoton().

Here is the caller graph for this function:

◆ fixedpt_pow()

fixedpt fixedpt_pow ( fixedpt  n,
fixedpt  exp 
)

Definition at line 304 of file fixedptc.c.

◆ fixedpt_sin()

fixedpt fixedpt_sin ( fixedpt  fp)

Definition at line 130 of file fixedptc.c.

Referenced by fixedpt_cos(), fixedpt_tan(), and get_two_normal_fixed().

Here is the caller graph for this function:

◆ fixedpt_sqrt()

fixedpt fixedpt_sqrt ( fixedpt  A)

Definition at line 96 of file fixedptc.c.

Referenced by asset_path_fixed_simplified(), fixedpt_cstr(), get_two_normal_fixed(), and processPhoton().

Here is the caller graph for this function:

◆ fixedpt_str()

void fixedpt_str ( fixedpt  A,
char *  str,
int  max_dec 
)

Convert the given fixedpt number to a decimal string.

The max_dec argument specifies how many decimal digits to the right of the decimal point to generate. If set to -1, the "default" number of decimal digits will be used (2 for 32-bit fixedpt width, 10 for 64-bit fixedpt width); If set to -2, "all" of the digits will be returned, meaning there will be invalid, bogus digits outside the specified precisions.

Definition at line 35 of file fixedptc.c.

Referenced by fixedpt_cstr().

Here is the caller graph for this function:

◆ fixedpt_tan()

fixedpt fixedpt_tan ( fixedpt  A)

Definition at line 168 of file fixedptc.c.

Variable Documentation

◆ str

char str[25] = {0}

Generated on Mon Feb 12 2024 13:03:08 for PandA-2024.02 by doxygen 1.8.13