LibC: Actually set the FPU environment instead of its pointer

This commit is contained in:
Tim Schumacher 2022-04-29 21:36:51 +02:00 committed by Andreas Kling
commit 89f9454785
Notes: sideshowbarker 2024-07-17 11:27:28 +09:00

View file

@ -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);