mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
i965: Use ldexpf() in VF float test set up.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
0684aed8ab
commit
f450030f66
1 changed files with 3 additions and 8 deletions
|
|
@ -40,15 +40,10 @@ void vf_float_conversion_test::SetUp() {
|
|||
int ebits = (vf >> 4) & 0x7;
|
||||
int mbits = vf & 0xf;
|
||||
|
||||
int e = ebits - 3;
|
||||
float x = 1.0f + mbits / 16.0f;
|
||||
int exp = ebits - 3;
|
||||
|
||||
float value = 1.0f;
|
||||
|
||||
value += mbits / 16.0f;
|
||||
|
||||
value *= exp2f(e);
|
||||
|
||||
vf_to_float[vf] = value;
|
||||
vf_to_float[vf] = ldexpf(x, exp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue