isfinite is not available on all platforms, so add a bitmasking alternative

Compiler Explorer shows both result in the same assembly.
This commit is contained in:
Anonymous Maarten authored and Anonymous Maarten committed 2025-12-08 20:48:47 +01:00
1 parent f896e26f59
commit a296c40867
2 files changed
+16 -7

No files matched your search

-1
View File
@@ -8,7 +8,6 @@
#include <SDL3/SDL_test.h>
#define ISFINITE(X) isfinite((float)(X))
#define ISINF(X) isinf((float)(X))
#define ISNAN(X) isnan((float)(X))