#include "SkTypes.h"
Go to the source code of this file.
Defines | |
#define | SkScalarAs2sCompliment(x) (x) |
#define | Sk2sComplimentAsScalar(x) (x) |
Functions | |
int32_t | SkFloatBits_toIntCast (int32_t floatBits) |
int32_t | SkFloatBits_toIntFloor (int32_t floatBits) |
int32_t | SkFloatBits_toIntRound (int32_t floatBits) |
int32_t | SkFloatBits_toIntCeil (int32_t floatBits) |
#define Sk2sComplimentAsScalar | ( | x | ) | (x) |
Definition at line 146 of file SkFloatBits.h.
#define SkScalarAs2sCompliment | ( | x | ) | (x) |
Definition at line 145 of file SkFloatBits.h.
int32_t SkFloatBits_toIntCast | ( | int32_t | floatBits | ) |
Given the bit representation of a float, return its value cast to an int. If the value is out of range, or NaN, return return +/- SK_MaxS32
int32_t SkFloatBits_toIntCeil | ( | int32_t | floatBits | ) |
Given the bit representation of a float, return its ceiling as an int. If the value is out of range, or NaN, return return +/- SK_MaxS32
int32_t SkFloatBits_toIntFloor | ( | int32_t | floatBits | ) |
Given the bit representation of a float, return its floor as an int. If the value is out of range, or NaN, return return +/- SK_MaxS32
int32_t SkFloatBits_toIntRound | ( | int32_t | floatBits | ) |
Given the bit representation of a float, return it rounded to an int. If the value is out of range, or NaN, return return +/- SK_MaxS32