mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
AK: Remove the SIMD version of rsqrt() too, for good measure
No strong reason to remove this one, other than that it's also unused.
This commit is contained in:
parent
a1f70b39fa
commit
41f57a5477
Notes:
sideshowbarker
2024-07-17 07:06:47 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/41f57a5477 Pull-request: https://github.com/SerenityOS/serenity/pull/22996
1 changed files with 0 additions and 14 deletions
|
@ -89,20 +89,6 @@ ALWAYS_INLINE static f32x4 sqrt(f32x4 v)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
ALWAYS_INLINE static f32x4 rsqrt(f32x4 v)
|
|
||||||
{
|
|
||||||
#if ARCH(X86_64)
|
|
||||||
return __builtin_ia32_rsqrtps(v);
|
|
||||||
#else
|
|
||||||
return f32x4 {
|
|
||||||
1.f / AK::sqrt(v[0]),
|
|
||||||
1.f / AK::sqrt(v[1]),
|
|
||||||
1.f / AK::sqrt(v[2]),
|
|
||||||
1.f / AK::sqrt(v[3]),
|
|
||||||
};
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
|
|
Loading…
Reference in a new issue