PandA-2024.02
|
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <stdint.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 | __attribute__ ((noinline)) |
Convert the given fixedpt number to a decimal string. More... | |
char * | fixedpt_cstr (const fixedpt A, const int max_dec) |
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] |
void __attribute__ | ( | (noinline) | ) |
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 39 of file fixedptc.c.
References FIXEDPT_BITS, fixedpt_fracpart, fixedpt_toint, and FIXEDPT_WBITS.
Definition at line 175 of file fixedptc.c.
References FIXEDPT_HALF_PI, and fixedpt_sin().
char* fixedpt_cstr | ( | const fixedpt | A, |
const int | max_dec | ||
) |
Definition at line 94 of file fixedptc.c.
References __attribute__(), A, fixedpt_div(), FIXEDPT_FBITS, FIXEDPT_ONE, fixedpt_sqrt(), fixedpt_str(), and str.
Definition at line 20 of file fixedptc.c.
References FIXEDPT_FBITS.
Definition at line 191 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 279 of file fixedptc.c.
References fixedpt_div(), FIXEDPT_FBITS, fixedpt_mul(), FIXEDPT_ONE, fixedpt_rconst, FIXEDPT_TWO, R, and x.
Definition at line 320 of file fixedptc.c.
References fixedpt_div(), and fixedpt_ln().
Definition at line 12 of file fixedptc.c.
References FIXEDPT_FBITS.
Definition at line 328 of file fixedptc.c.
References fixedpt_exp(), fixedpt_ln(), fixedpt_mul(), and FIXEDPT_ONE.
Definition at line 141 of file fixedptc.c.
References FIXEDPT_HALF_PI, fixedpt_mul(), FIXEDPT_ONE, FIXEDPT_PI, fixedpt_rconst, result, and sign.
Definition at line 183 of file fixedptc.c.
References fixedpt_cos(), fixedpt_div(), and fixedpt_sin().
char str[25] |
Definition at line 8 of file fixedptc.c.