about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/i386/fpu/s_frexp.S1
-rw-r--r--sysdeps/i386/fpu/s_frexpf.S1
-rw-r--r--sysdeps/i386/fpu/s_frexpl.S1
3 files changed, 3 insertions, 0 deletions
diff --git a/sysdeps/i386/fpu/s_frexp.S b/sysdeps/i386/fpu/s_frexp.S
index 0f149de346..ce63a4798d 100644
--- a/sysdeps/i386/fpu/s_frexp.S
+++ b/sysdeps/i386/fpu/s_frexp.S
@@ -70,6 +70,7 @@ ENTRY (BP_SYM (__frexp))
 	fmull	MO(two54)
 	movl	$-54, %ecx
 	fstpl	VAL0(%esp)
+	fwait
 	movl	VAL1(%esp), %eax
 	movl	%eax, %edx
 	andl	$0x7fffffff, %eax
diff --git a/sysdeps/i386/fpu/s_frexpf.S b/sysdeps/i386/fpu/s_frexpf.S
index 5c8c8ee6b8..74b880994d 100644
--- a/sysdeps/i386/fpu/s_frexpf.S
+++ b/sysdeps/i386/fpu/s_frexpf.S
@@ -67,6 +67,7 @@ ENTRY (BP_SYM (__frexpf))
 	fmuls	MO(two25)
 	movl	$-25, %ecx
 	fstps	VAL(%esp)
+	fwait
 	movl	VAL(%esp), %eax
 	movl	%eax, %edx
 	andl	$0x7fffffff, %eax
diff --git a/sysdeps/i386/fpu/s_frexpl.S b/sysdeps/i386/fpu/s_frexpl.S
index df749f8d4c..cb943f74c2 100644
--- a/sysdeps/i386/fpu/s_frexpl.S
+++ b/sysdeps/i386/fpu/s_frexpl.S
@@ -72,6 +72,7 @@ ENTRY (BP_SYM (__frexpl))
 	fmull	MO(two64)	/* It's not necessary to use a 80bit factor */
 	movl	$-64, %ecx
 	fstpt	VAL0(%esp)
+	fwait
 	movl	VAL2(%esp), %eax
 	movl	%eax, %edx
 	andl	$0x7fff, %eax