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 | 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} |
Definition at line 162 of file fixedptc.c.
Referenced by fixedpt_tan(), and get_two_normal_fixed().
char* fixedpt_cstr | ( | const fixedpt | A, |
const int | max_dec | ||
) |
Definition at line 88 of file fixedptc.c.
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().
Definition at line 174 of file fixedptc.c.
Referenced by asset_path_fixed_simplified(), and fixedpt_pow().
Definition at line 259 of file fixedptc.c.
Referenced by fixedpt_log(), fixedpt_pow(), get_two_normal_fixed(), and processPhoton().
Definition at line 298 of file fixedptc.c.
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().
Definition at line 304 of file fixedptc.c.
Definition at line 130 of file fixedptc.c.
Referenced by fixedpt_cos(), fixedpt_tan(), and get_two_normal_fixed().
Definition at line 96 of file fixedptc.c.
Referenced by asset_path_fixed_simplified(), fixedpt_cstr(), get_two_normal_fixed(), and processPhoton().
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().
Definition at line 168 of file fixedptc.c.
char str[25] = {0} |
Definition at line 8 of file fixedptc.c.
Referenced by test_panda.StoreOrUpdateMin::__call__(), tree_manager::add_identifier_node(), IndentedOutputStream::AppendIndented(), capitalize(), test_panda::CollectResults(), container_to_string(), test_panda::CreateJunitBody(), test_panda::CreatePerfPublisherBody(), test_panda::execute_tests(), fixedpt_cstr(), GimpleWriter::GimpleWriter(), TestbenchDUTModuleGenerator::InternalExec(), main(), APInt::operator T(), operator<<(), operator>>(), conn_binding::print(), read_file(), CompilerWrapper::ReadParameters(), test_panda::SearchCFiles(), and BitLatticeManipulator::string_cst_bitstring().