Use the LDEXPF wrapper macro.
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 13 Jul 2005 17:49:22 +0000 (17:49 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 13 Jul 2005 17:49:22 +0000 (17:49 +0000)
src/mesa/tnl/t_vb_arbprogram.c

index 13041949d17ba5eb68ec8ba848b3718ac8c29b48..fd7ffcd84c8f18f2e6d462934b9071758c7ba053 100644 (file)
@@ -279,9 +279,9 @@ static void do_EXP( struct arb_vp_machine *m, union instruction op )
    GLfloat flr_tmp = FLOORF(tmp);
    GLfloat frac_tmp = tmp - flr_tmp;
 
-   result[0] = ldexpf(1.0, (int)flr_tmp);
+   result[0] = LDEXPF(1.0, (int)flr_tmp);
    result[1] = frac_tmp;
-   result[2] = ldexpf(rough_approx_log2_0_1(frac_tmp), (int)flr_tmp);
+   result[2] = LDEXPF(rough_approx_log2_0_1(frac_tmp), (int)flr_tmp);
    result[3] = 1.0F;
 }