Reduce math library code size by 3.4KB (#21575)

This commit is contained in:
Scott Lahteine authored and GitHub committed 2021-04-12 16:49:53 -05:00
1 parent 1742fb8655
commit 24a095c5c1
35 files changed
+141 -145

No files matched your search

+3
View File
@@ -112,6 +112,9 @@
#define SIGN(a) ({__typeof__(a) _a = (a); (_a>0)-(_a<0);})
#define IS_POWER_OF_2(x) ((x) && !((x) & ((x) - 1)))
#define MFNAN 999999.0f
#define ISNAN(V) ((V) == MFNAN)
// Macros to constrain values
#ifdef __cplusplus