Searched refs:sk_float_saturate2int (Results 1 – 5 of 5) sorted by relevance
129 static inline int sk_float_saturate2int(float x) { in sk_float_saturate2int() function153 #define sk_float_floor2int(x) sk_float_saturate2int(sk_float_floor(x))154 #define sk_float_round2int(x) sk_float_saturate2int(sk_float_floor((x) + 0.5f))155 #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)
176 return sk_float_saturate2int((float)floor((double)x * SK_Fixed1 + 0.5)); in float_round_to_fixed()
684 int i = sk_float_saturate2int(r.fFloat); in DEF_TEST()