tesseract  4.00.00dev
mathfix.h File Reference
#include <math.h>
#include <float.h>

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

◆ fmax

#define fmax   max

Definition at line 33 of file mathfix.h.

◆ isinf

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

Definition at line 32 of file mathfix.h.

◆ isnan

#define isnan (   x)    _isnan(x)

Definition at line 31 of file mathfix.h.

◆ round

#define round (   x)    roundf(x)

Definition at line 34 of file mathfix.h.

◆ VS2008_INCLUDE_MATHFIXT_H_

#define VS2008_INCLUDE_MATHFIXT_H_

Definition at line 21 of file mathfix.h.

Function Documentation

◆ roundf()

float roundf ( float  num)
inline

Definition at line 35 of file mathfix.h.

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