trying to fix test failures

This commit is contained in:
Vadim Pisarevsky 2015-04-17 10:51:49 +03:00
parent ce7590bd24
commit 17675b4cb8

View File

@ -2287,16 +2287,16 @@ inline v_float32x4 operator ~ (const v_float32x4& a)
inline v_float32x4 v_sqrt(const v_float32x4& x)
{
float32x4_t e = vrsqrteq_f32(x.val);
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(e, e), x.val), e);
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(e, e), x.val), e);
return v_float32x4(vmulq_f32(e, x.val));
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(x.val, e), e), e);
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(x.val, e), e), e);
return v_float32x4(vmulq_f32(x.val, e));
}
inline v_float32x4 v_invsqrt(const v_float32x4& x)
{
float32x4_t e = vrsqrteq_f32(x.val);
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(e, e), x.val), e);
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(e, e), x.val), e);
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(x.val, e), e), e);
e = vmulq_f32(vrsqrtsq_f32(vmulq_f32(x.val, e), e), e);
return v_float32x4(e);
}