Blame sysdeps/powerpc/fpu/s_ceilf.c

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