Project

General

Profile

RE: Behaviour of conv ยป fpu.patch

Florian Negele, 08 July 2024 15:38

View differences:

runtime.cpp
asm (R"(
.initdata _init_fpu
.required
fninit
push word 0x0f7f
mov si, sp
......
asm (R"(
.initdata _init_fpu
.required
fninit
push word 0x0f7f
push word 0000'1111'0111'1111b
fldcw [esp]
pop ax
)");
#elif defined __amd64__
asm (R"(
.initdata _init_fpu
.required
push dword 00'0111'1111'1000'0000b
ldmxcsr dword [rsp]
pop rax
)");
#endif
// global register definitions
    (1-1/1)