summaryrefslogtreecommitdiff
path: root/src/mesa/tnl
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2005-08-12 18:56:56 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2005-08-12 18:56:56 +0000
commit6fe7a0dc01887e39f028d8d400b98d199744c18f (patch)
tree44e4cacd39f721c57e820dc8eeef4dbc5b9278cd /src/mesa/tnl
parentf2876d1ee3b878a07b12ddcb464633a44f7c29e7 (diff)
added FREXPF() macro (bug 4060)
Diffstat (limited to 'src/mesa/tnl')
-rw-r--r--src/mesa/tnl/t_vb_arbprogram.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mesa/tnl/t_vb_arbprogram.c b/src/mesa/tnl/t_vb_arbprogram.c
index c55fc84fea..5cee3d78dc 100644
--- a/src/mesa/tnl/t_vb_arbprogram.c
+++ b/src/mesa/tnl/t_vb_arbprogram.c
@@ -2,7 +2,7 @@
* Mesa 3-D graphics library
* Version: 6.3
*
- * Copyright (C) 1999-2004 Brian Paul All Rights Reserved.
+ * Copyright (C) 1999-2005 Brian Paul All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -351,11 +351,7 @@ static void do_LOG( struct arb_vp_machine *m, union instruction op )
const GLfloat *arg0 = m->File[op.alu.file0][op.alu.idx0];
GLfloat tmp = FABSF(arg0[0]);
int exponent;
-#ifdef _WIN32
- GLfloat mantissa = (GLfloat) frexp((double)tmp, &exponent);
-#else
- GLfloat mantissa = frexpf(tmp, &exponent);
-#endif
+ GLfloat mantissa = FREXPF(tmp, &exponent);
result[0] = (GLfloat) (exponent - 1);
result[1] = 2.0 * mantissa; /* map [.5, 1) -> [1, 2) */