aboutsummaryrefslogtreecommitdiffstats
path: root/common/math_defs.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-09-19 19:53:25 -0700
committerChris Robinson <[email protected]>2018-09-19 19:53:25 -0700
commit48b7745a49296bd70e16fbf8eeed2d47c84e72a9 (patch)
treeeec7bdf5ff04e65188aee24b5b3978c0cbffbf0e /common/math_defs.h
parent9ef4dd42474c3ecc266362df47fd5a6cca8dcbb4 (diff)
Add macros for commonly used square roots
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];