diff options
Diffstat (limited to 'include/core/SkFixed.h')
-rw-r--r-- | include/core/SkFixed.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/core/SkFixed.h b/include/core/SkFixed.h index c58c6de..8b56c50 100644 --- a/include/core/SkFixed.h +++ b/include/core/SkFixed.h @@ -111,6 +111,9 @@ inline SkFixed SkFixedFraction(SkFixed x) #define SkFixedAbs(x) SkAbs32(x) #define SkFixedAve(a, b) (((a) + (b)) >> 1) +// The same as SkIntToFixed(SkFixedFloor(x)) +#define SkFixedFloorToFixed(x) ((x) & ~0xFFFF) + SkFixed SkFixedMul_portable(SkFixed, SkFixed); SkFract SkFractMul_portable(SkFract, SkFract); inline SkFixed SkFixedSquare_portable(SkFixed value) |