Lines Matching refs:SkScalar

22 typedef float SkScalar;  typedef
65 typedef double SkScalar; typedef
110 #define SkIntToScalar(x) static_cast<SkScalar>(x)
114 #define SkFloatToScalar(x) static_cast<SkScalar>(x)
116 #define SkDoubleToScalar(x) static_cast<SkScalar>(x)
120 static inline bool SkScalarIsNaN(SkScalar x) { return x != x; } in SkScalarIsNaN()
124 static inline bool SkScalarIsFinite(SkScalar x) { in SkScalarIsFinite()
129 SkScalar prod = x * 0; in SkScalarIsFinite()
134 static inline bool SkScalarsAreFinite(SkScalar a, SkScalar b) { in SkScalarsAreFinite()
135 SkScalar prod = 0; in SkScalarsAreFinite()
142 static inline bool SkScalarsAreFinite(const SkScalar array[], int count) { in SkScalarsAreFinite()
143 SkScalar prod = 0; in SkScalarsAreFinite()
165 static inline int SkDScalarRoundToInt(SkScalar x) { in SkDScalarRoundToInt()
171 static inline SkScalar SkScalarClampMax(SkScalar x, SkScalar max) { in SkScalarClampMax()
173 x = SkTMax<SkScalar>(x, 0); in SkScalarClampMax()
177 static inline SkScalar SkScalarPin(SkScalar x, SkScalar min, SkScalar max) { in SkScalarPin()
181 SkScalar SkScalarSinCos(SkScalar radians, SkScalar* cosValue);
183 static inline SkScalar SkScalarSquare(SkScalar x) { return x * x; } in SkScalarSquare()
185 #define SkScalarMul(a, b) ((SkScalar)(a) * (b))
186 #define SkScalarMulAdd(a, b, c) ((SkScalar)(a) * (b) + (c))
188 #define SkScalarDiv(a, b) ((SkScalar)(a) / (b))
190 #define SkScalarMulDiv(a, b, c) ((SkScalar)(a) * (b) / (c))
199 static inline SkScalar SkMaxScalar(SkScalar a, SkScalar b) { return a > b ? a : b; } in SkMaxScalar()
200 static inline SkScalar SkMinScalar(SkScalar a, SkScalar b) { return a < b ? a : b; } in SkMinScalar()
202 static inline bool SkScalarIsInt(SkScalar x) { in SkScalarIsInt()
203 return x == (SkScalar)(int)x; in SkScalarIsInt()
212 static inline int SkScalarSignAsInt(SkScalar x) { in SkScalarSignAsInt()
217 static inline SkScalar SkScalarSignAsScalar(SkScalar x) { in SkScalarSignAsScalar()
223 static inline bool SkScalarNearlyZero(SkScalar x,
224 SkScalar tolerance = SK_ScalarNearlyZero) {
229 static inline bool SkScalarNearlyEqual(SkScalar x, SkScalar y,
230 SkScalar tolerance = SK_ScalarNearlyZero) {
241 static inline SkScalar SkScalarInterp(SkScalar A, SkScalar B, SkScalar t) { in SkScalarInterp()
256 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[],
257 const SkScalar values[], int length);
262 static inline bool SkScalarsEqual(const SkScalar a[], const SkScalar b[], int n) { in SkScalarsEqual()