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