Blame sysdeps/powerpc/fpu/s_ceil.c

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