Blame sysdeps/powerpc/fpu/s_ceilf.c

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