]>
Commit | Line | Data |
---|---|---|
0413b54c | 1 | /* Floating-point absolute value. PowerPC version. |
bfff8b1b | 2 | Copyright (C) 1997-2017 Free Software Foundation, Inc. |
0413b54c | 3 | This file is part of the GNU C Library. |
9a0a462c | 4 | |
0413b54c | 5 | The GNU C Library is free software; you can redistribute it and/or |
41bdb6e2 AJ |
6 | modify it under the terms of the GNU Lesser General Public |
7 | License as published by the Free Software Foundation; either | |
8 | version 2.1 of the License, or (at your option) any later version. | |
9a0a462c | 9 | |
0413b54c UD |
10 | The GNU C Library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
41bdb6e2 | 13 | Lesser General Public License for more details. |
9a0a462c | 14 | |
41bdb6e2 | 15 | You should have received a copy of the GNU Lesser General Public |
59ba27a6 PE |
16 | License along with the GNU C Library; if not, see |
17 | <http://www.gnu.org/licenses/>. */ | |
0413b54c | 18 | |
9a0a462c UD |
19 | #include <sysdep.h> |
20 | ||
21 | ENTRY(__fabs) | |
0413b54c | 22 | /* double [f1] fabs (double [f1] x); */ |
48ac0597 | 23 | fabs fp1,fp1 |
0413b54c | 24 | blr |
9a0a462c UD |
25 | END(__fabs) |
26 | ||
1ab18a5b | 27 | weak_alias (__fabs,fabs) |
0413b54c | 28 | |
0413b54c | 29 | /* It turns out that it's safe to use this code even for single-precision. */ |
9a0a462c | 30 | strong_alias(__fabs,__fabsf) |
1ab18a5b | 31 | weak_alias (__fabs,fabsf) |
9a0a462c | 32 | |
0413b54c | 33 | #ifdef NO_LONG_DOUBLE |
1ab18a5b UD |
34 | weak_alias (__fabs,__fabsl) |
35 | weak_alias (__fabs,fabsl) | |
0413b54c | 36 | #endif |