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
2025-12-08 20:19:39 +01:00
committed by Anonymous Maarten
parent f896e26f59
commit a296c40867
2 changed files with 16 additions and 7 deletions

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))