This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix i386 mathinline.h


Hi!

sincos* is protected by __USE_GNU in mathcalls.h, so without this
__sincos* lack prototypes (and -Wmissing-prototypes does not like that).
Alternatively, we can provide the prototypes in mathinline.h for
#ifndef __USE_GNU.
Both patches are attached to this mail, please pick one.

	Jakub
2000-05-23  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
	__sincosl): Guard with __USE_GNU.

--- libc/sysdeps/i386/fpu/bits/mathinline.h.jj	Mon May 22 16:28:00 2000
+++ libc/sysdeps/i386/fpu/bits/mathinline.h	Tue May 23 17:18:11 2000
@@ -305,6 +305,8 @@ __inline_mathcode (__pow2, __x, \
      : "=t" (__value) : "0" (__value), "u" (__exponent));		      \
   return __value)
 
+#ifdef __USE_GNU
+
 #define __sincos_code \
   register long double __cosr;						      \
   register long double __sinr;						      \
@@ -345,6 +347,7 @@ __sincosl (long double __x, long double 
   __sincos_code;
 }
 
+#endif
 
 /* Optimized inline implementation, sometimes with reduced precision
    and/or argument range.  */
2000-05-23  Jakub Jelinek  <jakub@redhat.com>

	* sysdeps/i386/fpu/bits/mathinline.h (__sincos, __sincosf,
	__sincosl): Provide prototypes if __USE_GNU not defined.

--- libc/sysdeps/i386/fpu/bits/mathinline.h.jj	Mon May 22 16:28:00 2000
+++ libc/sysdeps/i386/fpu/bits/mathinline.h	Tue May 23 17:25:48 2000
@@ -305,6 +305,13 @@ __inline_mathcode (__pow2, __x, \
      : "=t" (__value) : "0" (__value), "u" (__exponent));		      \
   return __value)
 
+#ifndef __USE_GNU
+__MATH_INLINE void __sincos (double __x, double *__sinx, double *__cosx);
+__MATH_INLINE void __sincosf (float __x, float *__sinx, float *__cosx);
+__MATH_INLINE void __sincosl (long double __x, long double *__sinx,
+			      long double *__cosx);
+#endif
+
 #define __sincos_code \
   register long double __cosr;						      \
   register long double __sinr;						      \

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]