mirror of
https://github.com/g-truc/glm.git
synced 2024-11-26 18:24:35 +00:00
Fixed exponential low level API
This commit is contained in:
parent
20cf68679c
commit
42d86b8955
@ -78,10 +78,8 @@ int test_sqrt()
|
||||
# if GLM_ARCH & GLM_ARCH_SSE2_BIT
|
||||
for(float f = 0.1f; f < 30.0f; f += 0.1f)
|
||||
{
|
||||
float q = _mm_cvtss_f32(_mm_sqrt_ps(_mm_set1_ps(f)));
|
||||
float r = _mm_cvtss_f32(glm_f32v4_sqrt_lowp(_mm_set1_ps(f)));
|
||||
float r = _mm_cvtss_f32(_mm_sqrt_ps(_mm_set1_ps(f)));
|
||||
float s = std::sqrt(f);
|
||||
Error += glm::abs(q - s) < 0.01f ? 0 : 1;
|
||||
Error += glm::abs(r - s) < 0.01f ? 0 : 1;
|
||||
assert(!Error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user