#ifndef BW_FIXED_H_
#define BW_FIXED_H_
#define BW_FIXED_BITS_PER_FRACTIONAL_PART …
#define BW_FIXED_GET_INTEGER_PART(x) …
struct bw_fixed { … };
#define BW_FIXED_MIN_I32 …
#define BW_FIXED_MAX_I32 …
static inline struct bw_fixed bw_min2(const struct bw_fixed arg1,
const struct bw_fixed arg2)
{ … }
static inline struct bw_fixed bw_max2(const struct bw_fixed arg1,
const struct bw_fixed arg2)
{ … }
static inline struct bw_fixed bw_min3(struct bw_fixed v1,
struct bw_fixed v2,
struct bw_fixed v3)
{ … }
static inline struct bw_fixed bw_max3(struct bw_fixed v1,
struct bw_fixed v2,
struct bw_fixed v3)
{ … }
struct bw_fixed bw_int_to_fixed_nonconst(int64_t value);
static inline struct bw_fixed bw_int_to_fixed(int64_t value)
{ … }
static inline int32_t bw_fixed_to_int(struct bw_fixed value)
{ … }
struct bw_fixed bw_frc_to_fixed(int64_t num, int64_t denum);
static inline struct bw_fixed fixed31_32_to_bw_fixed(int64_t raw)
{ … }
static inline struct bw_fixed bw_add(const struct bw_fixed arg1,
const struct bw_fixed arg2)
{ … }
static inline struct bw_fixed bw_sub(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
struct bw_fixed bw_mul(const struct bw_fixed arg1, const struct bw_fixed arg2);
static inline struct bw_fixed bw_div(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
static inline struct bw_fixed bw_mod(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
struct bw_fixed bw_floor2(const struct bw_fixed arg, const struct bw_fixed significance);
struct bw_fixed bw_ceil2(const struct bw_fixed arg, const struct bw_fixed significance);
static inline bool bw_equ(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
static inline bool bw_neq(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
static inline bool bw_leq(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
static inline bool bw_meq(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
static inline bool bw_ltn(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
static inline bool bw_mtn(const struct bw_fixed arg1, const struct bw_fixed arg2)
{ … }
#endif