#include "dm_services.h"
#include "include/fixed31_32.h"
static const struct fixed31_32 dc_fixpt_two_pi = …;
static const struct fixed31_32 dc_fixpt_ln2 = …;
static const struct fixed31_32 dc_fixpt_ln2_div_2 = …;
static inline unsigned long long abs_i64(
long long arg)
{ … }
static inline unsigned long long complete_integer_division_u64(
unsigned long long dividend,
unsigned long long divisor,
unsigned long long *remainder)
{ … }
#define FRACTIONAL_PART_MASK …
#define GET_INTEGER_PART(x) …
#define GET_FRACTIONAL_PART(x) …
struct fixed31_32 dc_fixpt_from_fraction(long long numerator, long long denominator)
{ … }
struct fixed31_32 dc_fixpt_mul(struct fixed31_32 arg1, struct fixed31_32 arg2)
{ … }
struct fixed31_32 dc_fixpt_sqr(struct fixed31_32 arg)
{ … }
struct fixed31_32 dc_fixpt_recip(struct fixed31_32 arg)
{ … }
struct fixed31_32 dc_fixpt_sinc(struct fixed31_32 arg)
{ … }
struct fixed31_32 dc_fixpt_sin(struct fixed31_32 arg)
{ … }
struct fixed31_32 dc_fixpt_cos(struct fixed31_32 arg)
{ … }
static struct fixed31_32 fixed31_32_exp_from_taylor_series(struct fixed31_32 arg)
{ … }
struct fixed31_32 dc_fixpt_exp(struct fixed31_32 arg)
{ … }
struct fixed31_32 dc_fixpt_log(struct fixed31_32 arg)
{ … }
static inline unsigned int ux_dy(
long long value,
unsigned int integer_bits,
unsigned int fractional_bits)
{ … }
static inline unsigned int clamp_ux_dy(
long long value,
unsigned int integer_bits,
unsigned int fractional_bits,
unsigned int min_clamp)
{ … }
unsigned int dc_fixpt_u4d19(struct fixed31_32 arg)
{ … }
unsigned int dc_fixpt_u3d19(struct fixed31_32 arg)
{ … }
unsigned int dc_fixpt_u2d19(struct fixed31_32 arg)
{ … }
unsigned int dc_fixpt_u0d19(struct fixed31_32 arg)
{ … }
unsigned int dc_fixpt_clamp_u0d14(struct fixed31_32 arg)
{ … }
unsigned int dc_fixpt_clamp_u0d10(struct fixed31_32 arg)
{ … }
int dc_fixpt_s4d19(struct fixed31_32 arg)
{ … }