Lines Matching refs:SkFixed
13 /** \file SkFixed.h
20 typedef int32_t SkFixed;
32 #define SkFloatToFixed(x) ((SkFixed)((x) * SK_Fixed1))
35 static inline SkFixed SkFloatToFixed(float x) {
37 return (SkFixed)n;
42 static inline SkFixed SkFloatToFixed_Check(float x) {
44 SkFixed n32 = (SkFixed)n64;
53 #define SkDoubleToFixed(x) ((SkFixed)((x) * SK_Fixed1))
55 /** Converts an integer to a SkFixed, asserting that the result does not overflow
59 inline SkFixed SkIntToFixed(int n)
68 // shifting. Then we force the cast to SkFixed to ensure that the answer is signed (like the
70 #define SkIntToFixed(n) (SkFixed)((unsigned)(n) << 16)
96 inline SkFixed SkFixedMul_longlong(SkFixed a, SkFixed b) {
97 return (SkFixed)((int64_t)a * b >> 16);
107 SK_ALWAYS_INLINE SkFixed SkFloatToFixed_arm(float x)
124 inline SkFixed SkFixedMul_arm(SkFixed x, SkFixed y)
150 #define SkFixed3232ToFixed(x) ((SkFixed)((x) >> 16))