Fix fxtract
This commit is contained in:
parent
724090b319
commit
0269e9cecf
|
@ -769,7 +769,7 @@ pub unsafe fn fpu_fxtract() {
|
|||
*fpu_stack_ptr as i32,
|
||||
f.exponent as f64 - F64_EXPONENT_BIAS as f64,
|
||||
);
|
||||
f.exponent = 0x7FF;
|
||||
f.exponent = 0x3FF;
|
||||
fpu_push(f.to_f64());
|
||||
}
|
||||
#[no_mangle]
|
||||
|
|
12
tests/nasm/fxtract.asm
Normal file
12
tests/nasm/fxtract.asm
Normal file
|
@ -0,0 +1,12 @@
|
|||
global _start
|
||||
|
||||
section .data
|
||||
align 16
|
||||
|
||||
%include "header.inc"
|
||||
|
||||
push 12345
|
||||
fild dword [esp]
|
||||
fxtract
|
||||
|
||||
%include "footer.inc"
|
Loading…
Reference in a new issue