aboutsummaryrefslogtreecommitdiff
path: root/core/math/math_funcs.h
diff options
context:
space:
mode:
authorHubert Jarosz2016-03-09 00:00:52 +0100
committerHubert Jarosz2016-03-09 00:00:52 +0100
commit4a4f2479146aa33e235ed57cde311efda68d3c8f (patch)
treecf91f2869ff8f058c6682569fb31e22e5ee736ad /core/math/math_funcs.h
parent1dad6eca812e5c2e313b54265114de8a1d73d999 (diff)
downloadgodot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.gz
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.tar.zst
godot-4a4f2479146aa33e235ed57cde311efda68d3c8f.zip
Diffstat (limited to 'core/math/math_funcs.h')
-rw-r--r--core/math/math_funcs.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/math/math_funcs.h b/core/math/math_funcs.h
index 62890b037..2e1b9c989 100644
--- a/core/math/math_funcs.h
+++ b/core/math/math_funcs.h
@@ -91,25 +91,25 @@ public:
static uint32_t rand();
static double randf();
-
+
static double round(double p_val);
static double random(double from, double to);
-
+
static _FORCE_INLINE_ real_t abs(real_t g) {
-#ifdef REAL_T_IS_DOUBLE
-
- return absd(g);
+#ifdef REAL_T_IS_DOUBLE
+
+ return absd(g);
#else
- return absf(g);
+ return absf(g);
#endif
}
static _FORCE_INLINE_ float absf(float g) {
-
+
union {
float f;
uint32_t i;
@@ -174,7 +174,7 @@ public:
static double pow(double x, double y);
static double log(double x);
static double exp(double x);
-
+
};