Lines Matching refs:exp
46 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntCast() local
49 if (exp >= 0) { in SkFloatBits_toIntCast()
50 if (exp > 7) { // overflow in SkFloatBits_toIntCast()
53 value <<= exp; in SkFloatBits_toIntCast()
56 exp = -exp; in SkFloatBits_toIntCast()
57 if (exp > 25) { // underflow in SkFloatBits_toIntCast()
58 exp = 25; in SkFloatBits_toIntCast()
60 value >>= exp; in SkFloatBits_toIntCast()
72 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntFloor() local
75 if (exp >= 0) { in SkFloatBits_toIntFloor()
76 if (exp > 7) { // overflow in SkFloatBits_toIntFloor()
79 value <<= exp; in SkFloatBits_toIntFloor()
86 exp = -exp; in SkFloatBits_toIntFloor()
87 if (exp > 25) { // underflow in SkFloatBits_toIntFloor()
92 if (exp > 149) { in SkFloatBits_toIntFloor()
96 exp = 25; in SkFloatBits_toIntFloor()
100 return value >> exp; in SkFloatBits_toIntFloor()
111 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntRound() local
114 if (exp >= 0) { in SkFloatBits_toIntRound()
115 if (exp > 7) { // overflow in SkFloatBits_toIntRound()
118 value <<= exp; in SkFloatBits_toIntRound()
125 exp = -exp; in SkFloatBits_toIntRound()
126 if (exp > 25) { // underflow in SkFloatBits_toIntRound()
127 exp = 25; in SkFloatBits_toIntRound()
129 int add = 1 << (exp - 1); in SkFloatBits_toIntRound()
130 return (value + add) >> exp; in SkFloatBits_toIntRound()
141 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntCeil() local
144 if (exp >= 0) { in SkFloatBits_toIntCeil()
145 if (exp > 7) { // overflow in SkFloatBits_toIntCeil()
148 value <<= exp; in SkFloatBits_toIntCeil()
155 exp = -exp; in SkFloatBits_toIntCeil()
156 if (exp > 25) { // underflow in SkFloatBits_toIntCeil()
161 if (exp > 149) { in SkFloatBits_toIntCeil()
166 exp = 25; in SkFloatBits_toIntCeil()
169 int add = (1 << exp) - 1; in SkFloatBits_toIntCeil()
170 return (value + add) >> exp; in SkFloatBits_toIntCeil()