10 #error "Use this header only with Microsoft Visual C++ compilers!"
13 #ifndef _MSC_CONFIG_H_
14 #define _MSC_CONFIG_H_
20 #define inline __inline
34 static inline long lrint(
double x) {
return (
long)(x > 0.0 ? x + 0.5 : x - 0.5); }
35 static inline long lrintf(
float x) {
return (
long)(x > 0.0f ? x + 0.5f : x - 0.5f); }
36 static inline long long llrint(
double x)
38 return (
long long)(x > 0.0 ? x + 0.5 : x - 0.5);
42 return (
long long)(x > 0.0f ? x + 0.5f : x - 0.5f);
44 static inline double rint(
double x) {
return (x > 0.0) ? floor(x + 0.5) : ceil(x - 0.5); }
45 static inline float rintf(
float x)
47 return (x > 0.0f) ? floorf(x + 0.5f) : ceilf(x - 0.5f);
56 #define INFINITY HUGE_VAL
63 static inline long int random(
void) {
return rand(); }
64 static inline void srandom(
unsigned int seed) { srand(seed); }
static float rintf(float x)
Definition: config.h:45
static double rint(double x)
Definition: config.h:44
static long int random(void)
Definition: config.h:63
static long lrintf(float x)
Definition: config.h:35
static long long llrint(double x)
Definition: config.h:36
ptrdiff_t ssize_t
Definition: config.h:27
static void srandom(unsigned int seed)
Definition: config.h:64
static long long llrintf(float x)
Definition: config.h:40
static long lrint(double x)
Definition: config.h:34