mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
LibC: Actually set the FPU environment instead of its pointer
This commit is contained in:
parent
7bf4a785c6
commit
89f9454785
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ int fesetenv(fenv_t const* env)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
asm volatile("fldenv %0" ::"m"(env)
|
asm volatile("fldenv %0" ::"m"(env->__x87_fpu_env)
|
||||||
: "memory");
|
: "memory");
|
||||||
|
|
||||||
set_mxcsr(env->__mxcsr);
|
set_mxcsr(env->__mxcsr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue