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

Unified Diff: sysdeps/i386/fpu/e_acosh.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_acosf.S ('k') | sysdeps/i386/fpu/e_acoshf.S » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sysdeps/i386/fpu/e_acosh.S
diff --git a/sysdeps/i386/fpu/e_acosh.S b/sysdeps/i386/fpu/e_acosh.S
index 62a232471ffb2ed7b883e5c36a2aabec1c193883..88c8510bc08fb42a0301978edacfe618848f202d 100644
--- a/sysdeps/i386/fpu/e_acosh.S
+++ b/sysdeps/i386/fpu/e_acosh.S
@@ -68,18 +68,18 @@ ENTRY(__ieee754_acosh)
sahf
ja 2f
fyl2xp1 // log1p(x-1+sqrt(2*(x-1)+(x-1)^2))
- ret
+ NACLRET
2: faddl MO(one) // x+sqrt(2*(x-1)+(x-1)^2) : log(2)
fyl2x // log(x+sqrt(2*(x-1)+(x-1)^2))
- ret
+ NACLRET
// x > 2^28 => y = log(x) + log(2)
.align ALIGNARG(4)
3: fyl2x // log(x)
fldln2 // log(2) : log(x)
faddp // log(x)+log(2)
- ret
+ NACLRET
// 2^28 > x > 2 => y = log(2*x - 1/(x+sqrt(x*x-1)))
.align ALIGNARG(4)
@@ -93,11 +93,11 @@ ENTRY(__ieee754_acosh)
fdivrl MO(one) // 1/(x+sqrt(x^2-1)) : 2*x : log(2)
fsubrp // 2*x+1/(x+sqrt(x^2)-1) : log(2)
fyl2x // log(2*x+1/(x+sqrt(x^2-1)))
- ret
+ NACLRET
// x < 1 => NaN
.align ALIGNARG(4)
5: fldz
fdiv %st, %st(0)
- ret
+ NACLRET
END(__ieee754_acosh)
« no previous file with comments | « sysdeps/i386/fpu/e_acosf.S ('k') | sysdeps/i386/fpu/e_acoshf.S » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698