summaryrefslogtreecommitdiff
path: root/sysdeps/libm-i387
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-i387')
-rw-r--r--sysdeps/libm-i387/e_exp.S1
-rw-r--r--sysdeps/libm-i387/e_expl.S1
-rw-r--r--sysdeps/libm-i387/s_ceil.S2
-rw-r--r--sysdeps/libm-i387/s_ceilf.S2
-rw-r--r--sysdeps/libm-i387/s_ceill.S2
-rw-r--r--sysdeps/libm-i387/s_floor.S2
-rw-r--r--sysdeps/libm-i387/s_floorf.S2
-rw-r--r--sysdeps/libm-i387/s_floorl.S2
8 files changed, 8 insertions, 6 deletions
diff --git a/sysdeps/libm-i387/e_exp.S b/sysdeps/libm-i387/e_exp.S
index dad201fb3f..01c254ab51 100644
--- a/sysdeps/libm-i387/e_exp.S
+++ b/sysdeps/libm-i387/e_exp.S
@@ -30,6 +30,7 @@ ENTRY(__ieee754_exp)
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
+ fstp %st(1)
ret
.LisInf:
diff --git a/sysdeps/libm-i387/e_expl.S b/sysdeps/libm-i387/e_expl.S
index 2884efa6ce..fc4a1832ca 100644
--- a/sysdeps/libm-i387/e_expl.S
+++ b/sysdeps/libm-i387/e_expl.S
@@ -32,6 +32,7 @@ ENTRY(__ieee754_expl)
fld1
faddp /* 2^(fract(x * log2(e))) */
fscale /* e^x */
+ fstp %st(1)
ret
.LisInf:
diff --git a/sysdeps/libm-i387/s_ceil.S b/sysdeps/libm-i387/s_ceil.S
index a500b07d31..5135c90e40 100644
--- a/sysdeps/libm-i387/s_ceil.S
+++ b/sysdeps/libm-i387/s_ceil.S
@@ -21,7 +21,7 @@ ENTRY(__ceil)
orl $0x0800,%edx /* round towards +oo */
andl $0xfbff,%edx
movl %edx,-8(%ebp)
- fldcw -8(%ebp) /* load modfied control word */
+ fldcw -8(%ebp) /* load modified control word */
fldl 8(%ebp); /* round */
frndint
diff --git a/sysdeps/libm-i387/s_ceilf.S b/sysdeps/libm-i387/s_ceilf.S
index 4789b014d8..93cf40bd43 100644
--- a/sysdeps/libm-i387/s_ceilf.S
+++ b/sysdeps/libm-i387/s_ceilf.S
@@ -21,7 +21,7 @@ ENTRY(__ceilf)
orl $0x0800,%edx /* round towards +oo */
andl $0xfbff,%edx
movl %edx,-8(%ebp)
- fldcw -8(%ebp) /* load modfied control word */
+ fldcw -8(%ebp) /* load modified control word */
flds 8(%ebp); /* round */
frndint
diff --git a/sysdeps/libm-i387/s_ceill.S b/sysdeps/libm-i387/s_ceill.S
index a02a54768d..a77e550d7b 100644
--- a/sysdeps/libm-i387/s_ceill.S
+++ b/sysdeps/libm-i387/s_ceill.S
@@ -22,7 +22,7 @@ ENTRY(__ceill)
orl $0x0800,%edx /* round towards +oo */
andl $0xfbff,%edx
movl %edx,-8(%ebp)
- fldcw -8(%ebp) /* load modfied control word */
+ fldcw -8(%ebp) /* load modified control word */
fldt 8(%ebp); /* round */
frndint
diff --git a/sysdeps/libm-i387/s_floor.S b/sysdeps/libm-i387/s_floor.S
index 7599303f3d..ca8914ee14 100644
--- a/sysdeps/libm-i387/s_floor.S
+++ b/sysdeps/libm-i387/s_floor.S
@@ -17,7 +17,7 @@ ENTRY(__floor)
orw $0x0400,%dx /* round towards -oo */
andw $0xf7ff,%dx
movw %dx,-8(%ebp)
- fldcw -8(%ebp) /* load modfied control word */
+ fldcw -8(%ebp) /* load modified control word */
fldl 8(%ebp); /* round */
frndint
diff --git a/sysdeps/libm-i387/s_floorf.S b/sysdeps/libm-i387/s_floorf.S
index c45d82e302..796db4fdad 100644
--- a/sysdeps/libm-i387/s_floorf.S
+++ b/sysdeps/libm-i387/s_floorf.S
@@ -17,7 +17,7 @@ ENTRY(__floorf)
orw $0x0400,%dx /* round towards -oo */
andw $0xf7ff,%dx
movw %dx,-8(%ebp)
- fldcw -8(%ebp) /* load modfied control word */
+ fldcw -8(%ebp) /* load modified control word */
flds 8(%ebp); /* round */
frndint
diff --git a/sysdeps/libm-i387/s_floorl.S b/sysdeps/libm-i387/s_floorl.S
index ae4ba2ea4d..396d854edc 100644
--- a/sysdeps/libm-i387/s_floorl.S
+++ b/sysdeps/libm-i387/s_floorl.S
@@ -18,7 +18,7 @@ ENTRY(__floorl)
orw $0x0400,%dx /* round towards -oo */
andw $0xf7ff,%dx
movw %dx,-8(%ebp)
- fldcw -8(%ebp) /* load modfied control word */
+ fldcw -8(%ebp) /* load modified control word */
fldt 8(%ebp) /* round */
frndint