tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/vs2010/port/mathfix.h File Reference
#include <math.h>
#include <float.h>

Go to the source code of this file.

Defines

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

Functions

float roundf (float num)

Define Documentation

#define fmax   max

Definition at line 31 of file mathfix.h.

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

Definition at line 30 of file mathfix.h.

#define isnan (   x)    _isnan(x)

Definition at line 29 of file mathfix.h.

#define round (   x)    roundf(x)

Definition at line 32 of file mathfix.h.

Definition at line 21 of file mathfix.h.


Function Documentation

float roundf ( float  num) [inline]

Definition at line 33 of file mathfix.h.

{ return num > 0 ? floorf(num + 0.5f) : ceilf(num - 0.5f); }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines