Namespaces | Defines | Functions

win32_macros.h File Reference

#include <boost/cstdint.hpp>
#include <math.h>
Include dependency graph for win32_macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  pcl
 

Software License Agreement (BSD License).


Defines

#define pcl_isnan(x)   isnan(x)
#define pcl_isfinite(x)   isfinite(x)
#define pcl_isinf(x)   isinf(x)
#define M_PI   3.14159265358979323846
#define M_E   2.7182818284590452354
#define M_LN2   0.693147180559945309417
#define pcl_lrint(x)   ((long int) pcl_round(x))
#define pcl_lrintf(x)   ((long int) pcl_round(x))
#define pcl_sleep(x)   sleep(x)

Functions

__inline double pcl_round (double number)
 Win32 doesn't seem to have rounding functions.
__inline float pcl_round (float number)

Define Documentation

#define M_E   2.7182818284590452354

Definition at line 108 of file win32_macros.h.

#define M_LN2   0.693147180559945309417

Definition at line 112 of file win32_macros.h.

#define M_PI   3.14159265358979323846

Definition at line 104 of file win32_macros.h.

#define pcl_isfinite (   x  )     isfinite(x)

Definition at line 97 of file win32_macros.h.

#define pcl_isinf (   x  )     isinf(x)

Definition at line 98 of file win32_macros.h.

#define pcl_isnan (   x  )     isnan(x)

Definition at line 96 of file win32_macros.h.

#define pcl_lrint (   x  )     ((long int) pcl_round(x))

Definition at line 128 of file win32_macros.h.

#define pcl_lrintf (   x  )     ((long int) pcl_round(x))

Definition at line 129 of file win32_macros.h.

#define pcl_sleep (   x  )     sleep(x)

Definition at line 134 of file win32_macros.h.


Function Documentation

__inline double pcl_round ( double  number  ) 

Win32 doesn't seem to have rounding functions.

Therefore implement our own versions of these functions here.

Definition at line 119 of file win32_macros.h.

__inline float pcl_round ( float  number  ) 

Definition at line 123 of file win32_macros.h.