19#ifndef _GIMLI_PLATFORM__H
20#define _GIMLI_PLATFORM__H
22#if defined(WINDOWS) || defined(_WIN32) || defined(WIN32)
25 #define PATHSEPARATOR "\\"
27 #define WIN32_LEAN_AND_MEAN
28 #define BOOST_USE_WINDOWS_H
31 #if defined(DLL_EXPORT) || defined(gimli_EXPORTS)
34 #define DLLEXPORT __declspec(dllexport)
38 #define DLLEXPORT __declspec(dllimport)
58 #define PATHSEPARATOR "/"
78template<
typename T > T rint( T
x ){
return std::floor(
x + 0.5); }
79template<
typename T >
inline bool isinf(T value){
80 return value >= std::numeric_limits<T>::min() &&
81 value <= std::numeric_limits<T>::max();}
82template<
typename T >
inline bool isnan(T value){
return (value) != (value);}
84template<
typename T >
inline bool isinf(T value){
return std::isinf(value);}
85template<
typename T >
inline bool isnan(T value){
return std::isnan(value);}
87template<
typename T >
inline bool isinf(T value){
return std::isinf(value);}
88template<
typename T >
inline bool isnan(T value){
return std::isnan(value);}
94#if defined ( __APPLE__ ) || ( defined (__SVR4) && defined (__sun) )
GIMLi main namespace for the Geophyiscal Inversion and Modelling Library.
Definition baseentity.h:24
int schedGetCPU()
Definition platform.cpp:66
long numberOfCPU()
Definition platform.cpp:33
RVector x(const R3Vector &rv)
Definition pos.cpp:107