Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
tyrquake
Commits
a159e712
Commit
a159e712
authored
Sep 09, 2015
by
Libretro-Admin
Browse files
Simplify IS_NAN
parent
c1364d3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/mathlib.h
View file @
a159e712
...
...
@@ -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])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment