AK+Everywhere: Add sincos and use it in some places

Calculating sin and cos at once is quite a bit cheaper than calculating
them individually.
x87 has even a dedicated instruction for it: `fsincos`.
This commit is contained in:
Hendiadyoin1 2022-02-03 12:48:17 +01:00 committed by Andreas Kling
commit cd21e03225
Notes: sideshowbarker 2024-07-17 17:24:00 +09:00
6 changed files with 30 additions and 10 deletions

View file

@ -36,7 +36,7 @@ ALWAYS_INLINE void warn_if_uninitialized(T value_with_shadow, const char* messag
}
}
namespace UserspaceEmulator {
namespace UserspaceEmulator { // NOLINT(readability-implicit-bool-conversion) 0/1 to follow spec closer
ALWAYS_INLINE void SoftFPU::warn_if_mmx_absolute(u8 index) const
{