2 #error "Use this header only with Microsoft Visual C++ compilers!"
5 #ifndef _MSC_CONFIG_H_ // [
12 # define inline __inline
26 static inline long lrint(
double x){
return (
long)(x > 0.0 ? x + 0.5 : x - 0.5);}
27 static inline long lrintf(
float x){
return (
long)(x > 0.0f ? x + 0.5f : x - 0.5f);}
28 static inline long long llrint(
double x){
return (
long long)(x > 0.0 ? x + 0.5 : x - 0.5);}
29 static inline long long llrintf(
float x){
return (
long long)(x > 0.0f ? x + 0.5f : x - 0.5f);}
30 static inline double rint(
double x){
return (x > 0.0)? floor(x + 0.5) : ceil(x - 0.5);}
31 static inline float rintf(
float x){
return (x > 0.0f)? floorf(x + 0.5f) : ceilf(x - 0.5f);}
39 #define INFINITY HUGE_VAL
46 static inline long int random (
void) {
return rand(); }
47 static inline void srandom (
unsigned int seed) { srand(seed); }
49 #endif // _MSC_CONFIG_H_ ]