All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
mathfix.h File Reference
#include <math.h>
#include <float.h>

Go to the source code of this file.


#define isnan(x)   _isnan(x)
#define isinf(x)   (!_finite(x))
#define fmax   max
#define round(x)   roundf(x)


float roundf (float num)

Macro Definition Documentation

#define fmax   max

Definition at line 33 of file mathfix.h.

#define isinf (   x)    (!_finite(x))

Definition at line 32 of file mathfix.h.

#define isnan (   x)    _isnan(x)

Definition at line 31 of file mathfix.h.

#define round (   x)    roundf(x)

Definition at line 34 of file mathfix.h.


Definition at line 21 of file mathfix.h.

Function Documentation

float roundf ( float  num)

Definition at line 35 of file mathfix.h.

35 { return num > 0 ? floorf(num + 0.5f) : ceilf(num - 0.5f); }