]> git.ipfire.org Git - thirdparty/glibc.git/blame - sysdeps/powerpc/powerpc32/fpu/s_llrint.c
Replace FSF snail mail address with URLs.
[thirdparty/glibc.git] / sysdeps / powerpc / powerpc32 / fpu / s_llrint.c
CommitLineData
b9b49b44 1/* Round a double value to a long long in the current rounding mode.
f964490f 2 Copyright (C) 1997, 2006 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 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
f964490f
RM
19#include <math.h>
20#include <math_ldbl_opt.h>
0413b54c
UD
21
22long long int
b9b49b44 23__llrint (double x)
0413b54c 24{
b9b49b44 25 return (long long int) __rint (x);
0413b54c
UD
26}
27weak_alias (__llrint, llrint)
b9b49b44
UD
28#ifdef NO_LONG_DOUBLE
29strong_alias (__llrint, __llrintl)
30weak_alias (__llrint, llrintl)
31#endif
f964490f
RM
32#if LONG_DOUBLE_COMPAT(libm, GLIBC_2_1)
33compat_symbol (libm, __llrint, llrintl, GLIBC_2_1);
34#endif