mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-27 04:41:02 +08:00
(__floor): Copy commentary from bits/mathinclude.h. Kill unused defines.
This commit is contained in:
parent
f8aa498753
commit
92a38c359c
@ -17,18 +17,17 @@
|
||||
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
#ifndef __USE_EXTERN_INLINES
|
||||
#define __USE_EXTERN_INLINES
|
||||
#endif
|
||||
#define __floor __i_floor
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#undef __floor
|
||||
|
||||
/* Use the -inf rounding mode conversion instructions to implement
|
||||
floor. We note when the exponent is large enough that the value
|
||||
must be integral, as this avoids unpleasant integer overflows. */
|
||||
|
||||
double
|
||||
__floor (double x)
|
||||
{
|
||||
/* Check not zero since floor(-0) == -0. */
|
||||
if (x != 0 && fabs (x) < 9007199254740992.0) /* 1 << DBL_MANT_DIG */
|
||||
{
|
||||
double __tmp1;
|
||||
|
Loading…
Reference in New Issue
Block a user