Blame sysdeps/powerpc/fpu/s_ceil.c
|
Packit Service |
bc2dc3 |
/* Smallest integral value not less than argument. PowerPC version.
|
|
Packit Service |
bc2dc3 |
Copyright (C) 2019 Free Software Foundation, Inc.
|
|
Packit Service |
bc2dc3 |
This file is part of the GNU C Library
|
|
Packit Service |
bc2dc3 |
|
|
Packit Service |
bc2dc3 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
bc2dc3 |
modify it under the terms of the GNU Library General Public License as
|
|
Packit Service |
bc2dc3 |
published by the Free Software Foundation; either version 2 of the
|
|
Packit Service |
bc2dc3 |
License, or (at your option) any later version.
|
|
Packit Service |
bc2dc3 |
|
|
Packit Service |
bc2dc3 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
bc2dc3 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
bc2dc3 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
bc2dc3 |
Library General Public License for more details.
|
|
Packit Service |
bc2dc3 |
|
|
Packit Service |
bc2dc3 |
You should have received a copy of the GNU Library General Public
|
|
Packit Service |
bc2dc3 |
License along with the GNU C Library; see the file COPYING.LIB. If
|
|
Packit Service |
bc2dc3 |
not, see <http://www.gnu.org/licenses/>. */
|
|
Packit Service |
bc2dc3 |
|
|
Packit Service |
bc2dc3 |
#define NO_MATH_REDIRECT
|
|
Packit Service |
bc2dc3 |
#include <math.h>
|
|
Packit Service |
bc2dc3 |
#include <libm-alias-double.h>
|
|
Packit Service |
bc2dc3 |
#include <round_to_integer.h>
|
|
Packit Service |
bc2dc3 |
|
|
Packit Service |
bc2dc3 |
double
|
|
Packit Service |
bc2dc3 |
__ceil (double x)
|
|
Packit Service |
bc2dc3 |
{
|
|
Packit Service |
bc2dc3 |
#ifdef _ARCH_PWR5X
|
|
Packit Service |
bc2dc3 |
return __builtin_ceil (x);
|
|
Packit Service |
bc2dc3 |
#else
|
|
Packit Service |
bc2dc3 |
return round_to_integer_double (CEIL, x);
|
|
Packit Service |
bc2dc3 |
#endif
|
|
Packit Service |
bc2dc3 |
}
|
|
Packit Service |
bc2dc3 |
#ifndef __ceil
|
|
Packit Service |
bc2dc3 |
libm_alias_double (__ceil, ceil)
|
|
Packit Service |
bc2dc3 |
#endif
|