Blame sysdeps/powerpc/fpu/s_ceilf.c

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