1 /* llround function. POWER8 PowerPC64 version.
2 Copyright (C) 2014-2015 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
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.
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
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
21 #include <math_ldbl_opt.h>
23 #define MFVSRD_R3_V1 .long 0x7c230066 /* mfvsrd r3,vs1 */
25 /* long long [r3] llround (float x [fp1]) */
29 frin fp1,fp1 /* Round to nearest +-0.5. */
30 fctidz fp1,fp1 /* Convert To Integer DW round toward 0. */
35 strong_alias (__llround, __lround)
36 weak_alias (__llround, llround)
37 weak_alias (__lround, lround)
40 weak_alias (__llround, llroundl)
41 strong_alias (__llround, __llroundl)
42 weak_alias (__lround, lroundl)
43 strong_alias (__lround, __lroundl)
45 #if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
46 compat_symbol (libm, __llround, llroundl, GLIBC_2_1)
47 compat_symbol (libm, __lround, lroundl, GLIBC_2_1)