diff options
author | Brian Paul <[email protected]> | 2012-09-03 12:19:15 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-09-03 18:07:41 -0600 |
commit | 56ccdf7e30f5bc1bc6b71d49bad2a9049ae170c4 (patch) | |
tree | 1d890a1708b7262c080444a8cd57948ea49a9edd /src/mesa/main/macros.h | |
parent | f44bda17f515c411071ca8744ebd96039d9c583b (diff) |
mesa: remove SQRTF, use sqrtf. Convert INV_SQRT() to inline function.
We were already defining sqrtf where we don't have the C99 version.
Reviewed-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/main/macros.h')
-rw-r--r-- | src/mesa/main/macros.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/macros.h b/src/mesa/main/macros.h index 7d0a375d138..fc6f2a28f20 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.h @@ -665,13 +665,13 @@ LEN_SQUARED_2FV(const GLfloat v[2]) static inline GLfloat LEN_3FV(const GLfloat v[3]) { - return SQRTF(LEN_SQUARED_3FV(v)); + return sqrtf(LEN_SQUARED_3FV(v)); } static inline GLfloat LEN_2FV(const GLfloat v[2]) { - return SQRTF(LEN_SQUARED_2FV(v)); + return sqrtf(LEN_SQUARED_2FV(v)); } |