about summary refs log tree commit diff
path: root/sysdeps/libm-i387/e_logf.S
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387/e_logf.S')
-rw-r--r--sysdeps/libm-i387/e_logf.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/libm-i387/e_logf.S b/sysdeps/libm-i387/e_logf.S
index 4459b7fc08..bdba1d3225 100644
--- a/sysdeps/libm-i387/e_logf.S
+++ b/sysdeps/libm-i387/e_logf.S
@@ -48,8 +48,8 @@ ENTRY(__ieee754_logf)
 	fabs			// |x-1| : x-1 : x : log(2)
 	fcompl	MO(limit)	// x-1 : x : log(2)
 	fnstsw			// x-1 : x : log(2)
-	sahf
-	ja	2f
+	andb	$0x45, %ah
+	jz	2f
 	fstp	%st(1)		// x-1 : log(2)
 	fyl2xp1			// log(x)
 	ret