mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-15 05:52:19 +00:00
LibC: Actually set the FPU environment instead of its pointer
This commit is contained in:
parent
7bf4a785c6
commit
89f9454785
Notes:
sideshowbarker
2024-07-17 11:27:28 +09:00
Author: https://github.com/timschumi
Commit: 89f9454785
Pull-request: https://github.com/SerenityOS/serenity/pull/13838
Issue: https://github.com/SerenityOS/serenity/issues/13816
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ int fesetenv(fenv_t const* env)
|
|||
return 0;
|
||||
}
|
||||
|
||||
asm volatile("fldenv %0" ::"m"(env)
|
||||
asm volatile("fldenv %0" ::"m"(env->__x87_fpu_env)
|
||||
: "memory");
|
||||
|
||||
set_mxcsr(env->__mxcsr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue