Searched refs:FIXED_ONE (Results 1 – 2 of 2) sorted by relevance
55 #define FIXED_ONE (1 << FIXED_BITS) macro61 #define FIXED_FROM_FLOAT(x) ((Fixed)((x)*FIXED_ONE))62 #define FIXED_TO_FLOAT(x) ((x)/(1.*FIXED_ONE))65 #define FIXED_DIV(x,y) (((int64_t)(x) * FIXED_ONE) / (y))73 #define FIXED_FROM_INT_FLOAT(x,f) (Fixed)((x)*(FIXED_ONE*(f)))175 if (x >= FIXED_ONE) x = FIXED_ONE-1; in palette_from_fixed()
60 #define FIXED_ONE (1 << FIXED_BITS) macro66 #define FIXED_FROM_FLOAT(x) ((Fixed)((x)*FIXED_ONE))67 #define FIXED_TO_FLOAT(x) ((x)/(1.*FIXED_ONE))70 #define FIXED_DIV(x,y) (((int64_t)(x) * FIXED_ONE) / (y))78 #define FIXED_FROM_INT_FLOAT(x,f) (Fixed)((x)*(FIXED_ONE*(f)))180 if (x >= FIXED_ONE) x = FIXED_ONE-1; in palette_from_fixed()