Flutter Engine
The Flutter Engine
|
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkDebug.h"
#include "include/private/base/SkMath.h"
#include "include/private/base/SkTPin.h"
#include <cstdint>
Go to the source code of this file.
Typedefs | |
typedef int32_t | SkFixed |
typedef int64_t | SkFixed3232 |
Functions | |
static SkFixed | SkFixedRoundToFixed (SkFixed x) |
static SkFixed | SkFixedCeilToFixed (SkFixed x) |
static SkFixed | SkFixedFloorToFixed (SkFixed x) |
static SkFixed | SkFixedMul (SkFixed a, SkFixed b) |
Types and macros for 16.16 fixed point
Definition in file SkFixed.h.
#define SK_FixedMin (-SK_FixedMax) |
#define SkFixed3232Min (-SkFixed3232Max) |
#define SkFixedDiv | ( | numer, | |
denom | |||
) | SkToS32(SkTPin<int64_t>((SkLeftShift((int64_t)(numer), 16) / (denom)), SK_MinS32, SK_MaxS32)) |
#define SkFixedRoundToInt | ( | x | ) | (((x) + SK_FixedHalf) >> 16) |
#define SkFixedToFixed3232 | ( | x | ) | (SkLeftShift((SkFixed3232)(x), 16)) |
#define SkFixedToScalar | ( | x | ) | SkFixedToFloat(x) |
#define SkFloatToFixed | ( | x | ) | sk_float_saturate2int((x) * SK_Fixed1) |
#define SkFloatToFixed3232 | ( | x | ) | sk_float_saturate2int64((x) * (65536.0f * 65536.0f)) |
#define SkFloatToFixed_Check | ( | x | ) | SkFloatToFixed(x) |
#define SkIntToFixed | ( | n | ) | (SkFixed)((unsigned)(n) << 16) |
#define SkIntToFixed3232 | ( | x | ) | (SkLeftShift((SkFixed3232)(x), 32)) |
#define SkScalarToFixed | ( | x | ) | SkFloatToFixed(x) |
#define SkScalarToFixed3232 | ( | x | ) | SkFloatToFixed3232(x) |
typedef int32_t SkFixed |
typedef int64_t SkFixed3232 |