]>
Commit | Line | Data |
---|---|---|
d38cd08c | 1 | /* ix87 specific implementation of arcsinh. |
f7a9f785 | 2 | Copyright (C) 1996-2016 Free Software Foundation, Inc. |
d38cd08c UD |
3 | This file is part of the GNU C Library. |
4 | Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996. | |
5 | ||
6 | The GNU C Library is free software; you can redistribute it and/or | |
41bdb6e2 AJ |
7 | modify it under the terms of the GNU Lesser General Public |
8 | License as published by the Free Software Foundation; either | |
9 | version 2.1 of the License, or (at your option) any later version. | |
d38cd08c UD |
10 | |
11 | The GNU C Library is distributed in the hope that it will be useful, | |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 14 | Lesser General Public License for more details. |
d38cd08c | 15 | |
41bdb6e2 | 16 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
17 | License along with the GNU C Library; if not, see |
18 | <http://www.gnu.org/licenses/>. */ | |
d38cd08c UD |
19 | |
20 | #include <machine/asm.h> | |
21 | ||
d38cd08c | 22 | .section .rodata |
d38cd08c UD |
23 | |
24 | .align ALIGNARG(4) | |
b67e9372 | 25 | .type huge,@object |
d38cd08c UD |
26 | huge: .double 1e+300 |
27 | ASM_SIZE_DIRECTIVE(huge) | |
b67e9372 | 28 | .type one,@object |
d38cd08c UD |
29 | one: .double 1.0 |
30 | ASM_SIZE_DIRECTIVE(one) | |
b67e9372 | 31 | .type limit,@object |
d38cd08c UD |
32 | limit: .double 0.29 |
33 | ASM_SIZE_DIRECTIVE(limit) | |
34 | ||
35 | #ifdef PIC | |
36 | #define MO(op) op##@GOTOFF(%edx) | |
37 | #else | |
38 | #define MO(op) op | |
39 | #endif | |
40 | ||
41 | .text | |
42 | ENTRY(__asinh) | |
43 | movl 8(%esp), %ecx | |
44 | movl $0x7fffffff, %eax | |
45 | andl %ecx, %eax | |
46 | andl $0x80000000, %ecx | |
d705269e UD |
47 | movl %eax, %edx |
48 | orl $0x800fffff, %edx | |
49 | incl %edx | |
50 |