Searched refs:sk_float_saturate2int (Results 1 – 10 of 10) sorted by relevance
94 static inline int sk_float_saturate2int(float x) { in sk_float_saturate2int() function118 #define sk_float_floor2int(x) sk_float_saturate2int(sk_float_floor(x))119 #define sk_float_round2int(x) sk_float_saturate2int(sk_float_floor((x) + 0.5f))120 #define sk_float_ceil2int(x) sk_float_saturate2int(sk_float_ceil(x))
40 #define SkFloatToFixed(x) sk_float_saturate2int((x) * SK_Fixed1)
122 static inline int sk_float_saturate2int(float x) { in sk_float_saturate2int() function146 #define sk_float_floor2int(x) sk_float_saturate2int(sk_float_floor(x))147 #define sk_float_round2int(x) sk_float_saturate2int(sk_float_floor((x) + 0.5f))148 #define sk_float_ceil2int(x) sk_float_saturate2int(sk_float_ceil(x))
41 #define SkFloatToFixed(x) sk_float_saturate2int((x) * SK_Fixed1)
58 #define SkScalarTruncToInt(x) sk_float_saturate2int(x)
172 return sk_float_saturate2int((float)floor((double)x * SK_Fixed1 + 0.5)); in float_round_to_fixed()
649 int i = sk_float_saturate2int(r.fFloat); in DEF_TEST()
684 int i = sk_float_saturate2int(r.fFloat); in DEF_TEST()