include/core/SkFloatBits.h File Reference

#include "SkTypes.h"
Include dependency graph for SkFloatBits.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

#define Sk2sComplimentAsScalar (  )     (x)

Definition at line 146 of file SkFloatBits.h.

#define SkScalarAs2sCompliment (  )     (x)

Definition at line 145 of file SkFloatBits.h.


Function Documentation

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


Generated on Tue Oct 20 11:03:40 2009 for Skia by  doxygen 1.6.1