mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-09 11:06:10 +00:00
LibC: Read correct FP register in fegetround on x86-64 :^)
This commit is contained in:
parent
751ddae7a2
commit
a4a8dd29ba
Notes:
sideshowbarker
2024-07-17 10:31:19 +09:00
Author: https://github.com/DanShaders
Commit: a4a8dd29ba
Pull-request: https://github.com/SerenityOS/serenity/pull/24090
Reviewed-by: https://github.com/ADKaster ✅
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ int fesetexceptflag(fexcept_t const* except, int exceptions)
|
|||
int fegetround()
|
||||
{
|
||||
// There's no way to signal whether the SSE rounding mode and x87 ones are different, so we assume they're the same
|
||||
return (read_status_register() >> 10) & 3;
|
||||
return (read_control_word() >> 10) & 3;
|
||||
}
|
||||
|
||||
int fesetround(int rounding_mode)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue