aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmath
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmath')
-rw-r--r--linden/indra/llmath/llmath.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/llmath/llmath.h b/linden/indra/llmath/llmath.h
index 66451b1..9f8e539 100644
--- a/linden/indra/llmath/llmath.h
+++ b/linden/indra/llmath/llmath.h
@@ -60,9 +60,7 @@
60#endif 60#endif
61 61
62// Single Precision Floating Point Routines 62// Single Precision Floating Point Routines
63#ifndef fsqrtf 63#if _MSC_VER < 1400
64#define fsqrtf(x) ((F32)sqrt((F64)(x)))
65#endif
66#ifndef sqrtf 64#ifndef sqrtf
67#define sqrtf(x) ((F32)sqrt((F64)(x))) 65#define sqrtf(x) ((F32)sqrt((F64)(x)))
68#endif 66#endif
@@ -83,6 +81,11 @@
83#ifndef powf 81#ifndef powf
84#define powf(x,y) ((F32)pow((F64)(x),(F64)(y))) 82#define powf(x,y) ((F32)pow((F64)(x),(F64)(y)))
85#endif 83#endif
84#endif
85
86#ifndef fsqrtf
87#define fsqrtf(x) sqrtf(x)
88#endif
86 89
87const F32 GRAVITY = -9.8f; 90const F32 GRAVITY = -9.8f;
88 91