diff options
author | Brian Paul <[email protected]> | 2003-03-04 16:33:53 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-03-04 16:33:53 +0000 |
commit | f9b1e5241facc8cf255c258082d5cb5b04783e93 (patch) | |
tree | ea3bb1859dba42e746b0f14dce5193b81c922ac5 /src/mesa/main/macros.h | |
parent | 386578c5bcc5c6701a6b9692cdc04cfe4064ca06 (diff) |
added _mesa_inv_sqrtf() and INV_SQRTF() (Josh Vanderhoof)
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 0be95109957..63bd02bdff8 100644 --- a/src/mesa/main/macros.h +++ b/src/mesa/main/macros.h @@ -1,4 +1,4 @@ -/* $Id: macros.h,v 1.31 2003/03/01 01:50:21 brianp Exp $ */ +/* $Id: macros.h,v 1.32 2003/03/04 16:33:54 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -572,7 +572,7 @@ do { \ do { \ GLfloat len = (GLfloat) LEN_SQUARED_3FV(V); \ if (len) { \ - len = (GLfloat) (1.0 / SQRTF(len)); \ + len = INV_SQRTF(len); \ (V)[0] = (GLfloat) ((V)[0] * len); \ (V)[1] = (GLfloat) ((V)[1] * len); \ (V)[2] = (GLfloat) ((V)[2] * len); \ |