Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: sysdeps/i386/fpu/e_pow.S

Issue 3539003: Fix up RET instructions in sysdeps/i386/fpu (Closed) Base URL: ssh://gitrw.chromium.org/nacl-glibc
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sysdeps/i386/fpu/e_logl.S ('k') | sysdeps/i386/fpu/e_powf.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/i386/fpu/e_pow.S
diff --git a/sysdeps/i386/fpu/e_pow.S b/sysdeps/i386/fpu/e_pow.S
index 792f926902a7f63442c29d6e9e11eafed215276e..f00e094827b3c2b55f8c3a7b3384b76ccbad2938 100644
--- a/sysdeps/i386/fpu/e_pow.S
+++ b/sysdeps/i386/fpu/e_pow.S
@@ -143,7 +143,7 @@ ENTRY(__ieee754_pow)
orl %edx, %ecx
jnz 6b
fstp %st(0) // ST*x
- ret
+ NACLRET
/* y is ±NAN */
30: fldl 4(%esp) // x : y
@@ -154,7 +154,7 @@ ENTRY(__ieee754_pow)
je 31f
fxch // y : x
31: fstp %st(1)
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
.align ALIGNARG(4)
@@ -186,14 +186,14 @@ ENTRY(__ieee754_pow)
addl $8, %esp
cfi_adjust_cfa_offset (-8)
fstp %st(1) // 2^fract(y*log2(x))*2^int(y*log2(x))
- ret
+ NACLRET
// pow(x,±0) = 1
.align ALIGNARG(4)
11: fstp %st(0) // pop y
fldl MO(one)
- ret
+ NACLRET
// y == ±inf
.align ALIGNARG(4)
@@ -214,15 +214,15 @@ ENTRY(__ieee754_pow)
xorb %ah, %dl
andl $2, %edx
fldl MOX(inf_zero, %edx, 4)
- ret
+ NACLRET
.align ALIGNARG(4)
14: fldl MO(one)
- ret
+ NACLRET
.align ALIGNARG(4)
13: fldl 4(%esp) // load x == NaN
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
.align ALIGNARG(4)
@@ -257,7 +257,7 @@ ENTRY(__ieee754_pow)
// It's an odd integer.
shrl $31, %edx
fldl MOX(minf_mzero, %edx, 8)
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
.align ALIGNARG(4)
@@ -268,7 +268,7 @@ ENTRY(__ieee754_pow)
shrl $5, %eax
andl $8, %eax
fldl MOX(inf_zero, %eax, 1)
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
.align ALIGNARG(4)
@@ -277,7 +277,7 @@ ENTRY(__ieee754_pow)
cfi_adjust_cfa_offset (-8)
18: shrl $31, %edx
fldl MOX(inf_zero, %edx, 8)
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
.align ALIGNARG(4)
@@ -313,7 +313,7 @@ ENTRY(__ieee754_pow)
fldl MO(one)
fdivl MO(zero)
fchs
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
25: fstp %st(0)
@@ -322,7 +322,7 @@ ENTRY(__ieee754_pow)
27: // Raise divide-by-zero exception and get infinity value.
fldl MO(one)
fdivl MO(zero)
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
.align ALIGNARG(4)
@@ -350,13 +350,13 @@ ENTRY(__ieee754_pow)
jae 24f // does not fit in mantissa bits
// It's an odd integer.
fldl MO(mzero)
- ret
+ NACLRET
cfi_adjust_cfa_offset (8)
22: fstp %st(0)
23: addl $8, %esp // Don't use 2 x pop
cfi_adjust_cfa_offset (-8)
24: fldl MO(zero)
- ret
+ NACLRET
END(__ieee754_pow)
« no previous file with comments | « sysdeps/i386/fpu/e_logl.S ('k') | sysdeps/i386/fpu/e_powf.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698