From 55a133aa3c8f173fc303f6580a5febe7de149ffd Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 28 Nov 1989 12:51:35 +0000 Subject: [PATCH] fef did not work properly for negative args --- mach/i86/libem/fp8087.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mach/i86/libem/fp8087.s b/mach/i86/libem/fp8087.s index d9635059f..b1c477e6d 100644 --- a/mach/i86/libem/fp8087.s +++ b/mach/i86/libem/fp8087.s @@ -208,7 +208,6 @@ bigmin: 1: ! we get here on zero exp mov ax,6(bx) and ax,0177 - mov 6(bx),ax or ax,4(bx) jne 1f ! zero result xor ax,ax @@ -219,6 +218,7 @@ bigmin: ret 1: ! otherwise unnormalized number mov cx,6(bx) + and cx,0100177 mov dx,cx and cx,0x8000 mov ax,-125 @@ -267,7 +267,6 @@ bigmin: 1: ! we get here on zero exp mov ax,10(bx) and ax,017 - mov 10(bx),ax or ax,8(bx) or ax,6(bx) or ax,4(bx) @@ -282,6 +281,7 @@ bigmin: ret 1: ! otherwise unnormalized number mov cx,10(bx) + and cx,0100017 mov dx,cx and cx,0x8000 mov ax,-1021 -- 2.34.1