This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
optim: better isnan() reimplementation.
legacy
Sam Hocevar
sam
13 years ago
parent
824551e4af
commit
3402db36c3
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
test/half.cpp
+ 1
- 1
test/half.cpp
View File
@@ -30,7 +30,7 @@
static inline int isnan(float f)
{
union { float f; uint32_t x; } u = { f };
return (
~u.x << 1) < 0x00fffffe
u;
return (
u.x << 1) > 0xff000000
u;
}
#endif
Write
Preview
Loading…
Cancel
Save