Bug 1827727 - Fix building Skia on GCC ARM. r=aosmond,gfx-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D175578
This commit is contained in:
Lee Salzman 2023-04-18 15:09:01 +00:00
parent 5f37f41db4
commit 1b21d02a37

View File

@ -233,7 +233,7 @@ namespace SK_OPTS_NS {
SI F abs_ (F v) { return vabsq_f32(v); }
SI I32 abs_ (I32 v) { return vabsq_s32(v); }
SI F rcp_fast(F v) { auto e = vrecpeq_f32 (v); return vrecpsq_f32 (v,e ) * e; }
SI F rcp_precise (F v) { auto e = rcp_fast(v); return vrecpsq_f32 (v,e ) * F(e); }
SI F rcp_precise (F v) { float32x4_t e = rcp_fast(v); return vrecpsq_f32(v,e) * e; }
SI F rsqrt (F v) { auto e = vrsqrteq_f32(v); return vrsqrtsq_f32(v,e*e) * e; }
SI U16 pack(U32 v) { return SK_CONVERTVECTOR(v, U16); }