mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-06 17:48:37 +00:00
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:
parent
47fe911196
commit
cd21e03225
Notes:
sideshowbarker
2024-07-17 17:24:00 +09:00
Author: https://github.com/Hendiadyoin1
Commit: cd21e03225
Pull-request: https://github.com/SerenityOS/serenity/pull/12269
Reviewed-by: https://github.com/awesomekling ✅
6 changed files with 30 additions and 10 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue