Searched refs:FIXED_BITS (Results 1 – 2 of 2) sorted by relevance
54 #define FIXED_BITS 16 macro55 #define FIXED_ONE (1 << FIXED_BITS)58 #define FIXED_FROM_INT(x) ((x) << FIXED_BITS)59 #define FIXED_TO_INT(x) ((x) >> FIXED_BITS)64 #define FIXED_MUL(x,y) (((int64_t)(x) * (y)) >> FIXED_BITS)70 #define FIXED_FRAC(x) ((x) & ((1 << FIXED_BITS)-1))71 #define FIXED_TRUNC(x) ((x) & ~((1 << FIXED_BITS)-1))91 #if ANGLE_BITS <= FIXED_BITS92 # define ANGLE_FROM_FIXED(x) (Angle)((x) >> (FIXED_BITS - ANGLE_BITS))93 # define ANGLE_TO_FIXED(x) (Fixed)((x) << (FIXED_BITS - ANGLE_BITS))[all …]
59 #define FIXED_BITS 16 macro60 #define FIXED_ONE (1 << FIXED_BITS)63 #define FIXED_FROM_INT(x) ((x) << FIXED_BITS)64 #define FIXED_TO_INT(x) ((x) >> FIXED_BITS)69 #define FIXED_MUL(x,y) (((int64_t)(x) * (y)) >> FIXED_BITS)75 #define FIXED_FRAC(x) ((x) & ((1 << FIXED_BITS)-1))76 #define FIXED_TRUNC(x) ((x) & ~((1 << FIXED_BITS)-1))96 #if ANGLE_BITS <= FIXED_BITS97 # define ANGLE_FROM_FIXED(x) (Angle)((x) >> (FIXED_BITS - ANGLE_BITS))98 # define ANGLE_TO_FIXED(x) (Fixed)((x) << (FIXED_BITS - ANGLE_BITS))[all …]