about summary refs log tree commit diff
path: root/sysdeps/i386/fpu
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/i386/fpu')
-rw-r--r--sysdeps/i386/fpu/s_nearbyint.S2
-rw-r--r--sysdeps/i386/fpu/s_nearbyintf.S2
-rw-r--r--sysdeps/i386/fpu/s_nearbyintl.S2
3 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/i386/fpu/s_nearbyint.S b/sysdeps/i386/fpu/s_nearbyint.S
index 65ce4f76a1..d8bb382d9e 100644
--- a/sysdeps/i386/fpu/s_nearbyint.S
+++ b/sysdeps/i386/fpu/s_nearbyint.S
@@ -12,7 +12,7 @@ ENTRY(__nearbyint)
 	pushl	%ecx
 	fnstcw	(%esp)
 	movl	(%esp), %eax
-	andl	$~0x20, %eax
+	orl	$0x20, %eax
 	movl	%eax, 4(%esp)
 	fldcw	4(%esp)
 	frndint
diff --git a/sysdeps/i386/fpu/s_nearbyintf.S b/sysdeps/i386/fpu/s_nearbyintf.S
index 090c631607..21858650e2 100644
--- a/sysdeps/i386/fpu/s_nearbyintf.S
+++ b/sysdeps/i386/fpu/s_nearbyintf.S
@@ -12,7 +12,7 @@ ENTRY(__nearbyintf)
 	pushl	%ecx
 	fnstcw	(%esp)
 	movl	(%esp), %eax
-	andl	$~0x20, %eax
+	orl	$0x20, %eax
 	movl	%eax, 4(%esp)
 	fldcw	4(%esp)
 	frndint
diff --git a/sysdeps/i386/fpu/s_nearbyintl.S b/sysdeps/i386/fpu/s_nearbyintl.S
index 2f60af8f18..d74dacb990 100644
--- a/sysdeps/i386/fpu/s_nearbyintl.S
+++ b/sysdeps/i386/fpu/s_nearbyintl.S
@@ -12,7 +12,7 @@ ENTRY(__nearbyintl)
 	pushl	%ecx
 	fnstcw	(%esp)
 	movl	(%esp), %eax
-	andl	$~0x20, %eax
+	orl	$0x20, %eax
 	movl	%eax, 4(%esp)
 	fldcw	4(%esp)
 	frndint