mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 04:58:05 +02:00
Use the LDEXPF wrapper macro.
This commit is contained in:
parent
3f7cb794ea
commit
b127cfeb7a
1 changed files with 2 additions and 2 deletions
|
|
@ -279,9 +279,9 @@ static void do_EXP( struct arb_vp_machine *m, union instruction op )
|
||||||
GLfloat flr_tmp = FLOORF(tmp);
|
GLfloat flr_tmp = FLOORF(tmp);
|
||||||
GLfloat frac_tmp = tmp - flr_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[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;
|
result[3] = 1.0F;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue