Commit a159e712 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Simplify IS_NAN

parent c1364d3c
......@@ -53,12 +53,7 @@ extern int nanmask;
#ifdef _MSC_VER
#define IS_NAN(x) _isnan(x)
#else
#define IS_NAN(x) ({ \
float *_x = &(x); \
int tmp; \
memcpy(&tmp, _x, sizeof(int)); \
((tmp & nanmask) == nanmask); \
})
#define IS_NAN(x) (((*(int *)&x)&nanmask)==nanmask)
#endif
#define DotProduct(x,y) (x[0]*y[0]+x[1]*y[1]+x[2]*y[2])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment