]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/powerpc/powerpc64/fpu/s_llrint.c
Update.
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc64 / fpu / s_llrint.c
CommitLineData
2a1ece14
UD
1/* Round a double value to a long long in the current rounding mode.
2 Copyright (C) 1997, 2004 Free Software Foundation, Inc.
0413b54c
UD
3 This file is part of the GNU C Library.
4
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.
0413b54c
UD
9
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.
0413b54c 14
41bdb6e2
AJ
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, write to the Free
17 Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
18 02111-1307 USA. */
0413b54c 19
1010f17b 20/* Kludge to avoid decls that will confuse strong_alias below. */
2a1ece14 21#define __lrint XXX__lrint
1010f17b 22#define __lrintl XXX__lrintl
2a1ece14 23#define lrint XXXlrint
1010f17b
RM
24#define lrintl XXXlrintl
25
0413b54c
UD
26#include "math.h"
27
2a1ece14 28#undef __lrint
1010f17b 29#undef __lrintl
2a1ece14 30#undef lrint
1010f17b
RM
31#undef lrintl
32
2a1ece14
UD
33long long int
34__llrint (double x)
0413b54c 35{
2a1ece14 36 return (long long int) __rint (x);
0413b54c 37}
2a1ece14
UD
38string_alias (__llrint, __lrint)
39weak_alias (__llrint, llrint)
b9b49b44 40weak_alias (__lrint, lrint)
b9b49b44 41#ifdef NO_LONG_DOUBLE
2a1ece14
UD
42strong_alias (__llrint, __llrintl)
43weak_alias (__llrint, llrintl)
b9b49b44
UD
44strong_alias (__lrint, __lrintl)
45weak_alias (__lrint, lrintl)
0413b54c 46#endif