aboutsummaryrefslogtreecommitdiffstats
path: root/common/math_defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/math_defs.h')
-rw-r--r--common/math_defs.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/math_defs.h b/common/math_defs.h
index 99cc62ec..aa79b695 100644
--- a/common/math_defs.h
+++ b/common/math_defs.h
@@ -18,6 +18,12 @@
#define FLT_EPSILON (1.19209290e-07f)
#endif
+#define SQRT_2 1.41421356237309504880
+#define SQRT_3 1.73205080756887719318
+
+#define SQRTF_2 1.41421356237309504880f
+#define SQRTF_3 1.73205080756887719318f
+
#ifndef HUGE_VALF
static const union msvc_inf_hack {
unsigned char b[4];