![]() |
PandA-2024.02
|
#include <stdio.h>#include <string.h>#include <unistd.h>#include <stdint.h>#include <assert.h>#include "fixedptc.h"

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 | |
| static char | str [25] |
Definition at line 187 of file fixedptc.c.
References FIXEDPT_HALF_PI, and fixedpt_sin().

| char* fixedpt_cstr | ( | const fixedpt | A, |
| const int | max_dec | ||
| ) |
Definition at line 104 of file fixedptc.c.
References fixedpt_str(), and str.

Definition at line 25 of file fixedptc.c.
References FIXEDPT_FBITS.
Definition at line 203 of file fixedptc.c.
References fixedpt_abs, fixedpt_div(), FIXEDPT_FBITS, FIXEDPT_FMASK, fixedpt_mul(), FIXEDPT_ONE, FIXEDPT_ONE_HALF, fixedpt_rconst, FIXEDPT_TWO, k, and R.

Definition at line 291 of file fixedptc.c.
References fixedpt_div(), FIXEDPT_FBITS, fixedpt_mul(), FIXEDPT_ONE, fixedpt_rconst, FIXEDPT_TWO, R, test_panda::table, and x.

Definition at line 336 of file fixedptc.c.
References fixedpt_div(), and fixedpt_ln().

Definition at line 12 of file fixedptc.c.
References B, and FIXEDPT_FBITS.
Definition at line 344 of file fixedptc.c.
References fixedpt_exp(), fixedpt_ln(), fixedpt_mul(), and FIXEDPT_ONE.

Definition at line 153 of file fixedptc.c.
References FIXEDPT_HALF_PI, fixedpt_mul(), FIXEDPT_ONE, FIXEDPT_PI, fixedpt_rconst, result, and sign.

Definition at line 114 of file fixedptc.c.
References A, fixedpt_div(), FIXEDPT_FBITS, and FIXEDPT_ONE.

| 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 50 of file fixedptc.c.
References FIXEDPT_BITS, fixedpt_fracpart, fixedpt_toint, and FIXEDPT_WBITS.
Definition at line 195 of file fixedptc.c.
References fixedpt_cos(), fixedpt_div(), and fixedpt_sin().

|
static |
Definition at line 9 of file fixedptc.c.
1.8.13