1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00
2001-11-28  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
	__signbitl): Only define for ISO C99.
This commit is contained in:
Ulrich Drepper
2001-11-28 21:12:46 +00:00
parent 04484feb73
commit 4e735c9aaf
2 changed files with 62 additions and 52 deletions

View File

@@ -1,3 +1,8 @@
2001-11-28 Jakub Jelinek <jakub@redhat.com>
* sysdeps/sparc/fpu/bits/mathinline.h (__signbitf, __signbit,
__signbitl): Only define for ISO C99.
2001-11-22 Thorsten Kukuk <kukuk@suse.de>
* nss/nss_files/files-hosts.c (_nss_files_get##name##_r): Set

View File

@@ -1,5 +1,5 @@
/* Inline math functions for SPARC.
Copyright (C) 1999, 2000 Free Software Foundation, Inc.
Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Jakub Jelinek <jakub@redhat.com>.
@@ -24,7 +24,7 @@
#include <bits/wordsize.h>
#if defined __GNUC__
#ifdef __GNUC__
#ifdef __USE_ISOC99
@@ -101,6 +101,9 @@
/* The gcc, version 2.7 or below, has problems with all this inlining
code. So disable it for this version of the compiler. */
# if __GNUC_PREREQ (2, 8)
# ifdef __USE_ISOC99
/* Test for negative number. Used in the signbit() macro. */
__MATH_INLINE int
__signbitf (float __x) __THROW
@@ -129,19 +132,21 @@ __signbitl (long double __x) __THROW
__MATH_INLINE int
__signbit (double __x) __THROW
{
__extension__ union { double __d; long __i; } __u = { __d: __x };
__extension__ union { double __d; long int __i; } __u = { __d: __x };
return __u.__i < 0;
}
__MATH_INLINE int
__signbitl (long double __x) __THROW
{
__extension__ union { long double __l; long __i[2]; } __u = { __l: __x };
__extension__ union { long double __l; long int __i[2]; } __u = { __l: __x };
return __u.__i[0] < 0;
}
# endif /* sparc64 */
# endif /* __USE_ISOC99 */
# ifndef __NO_MATH_INLINES
__MATH_INLINE double
@@ -171,7 +176,7 @@ sqrtl(long double __x) __THROW
}
# endif /* sparc64 */
#endif
# endif /* !__NO_MATH_INLINES */
/* This code is used internally in the GNU libc. */
# ifdef __LIBC_INTERNAL_MATH_INLINES