This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Declare logb, logbf in <math.h>


These functions have been been around for a long time, but they were never declared in <math.h>.

Patch attached.


Yaakov Cygwin/X

2009-11-12  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

	* libm/common/fdlibm.h (logb, logbf): Move decls from here...
	* libc/include/math.h (logb, logbf): ...to here.

Index: libc/include/math.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/math.h,v
retrieving revision 1.43
diff -u -r1.43 math.h
--- libc/include/math.h	9 Jul 2009 17:04:56 -0000	1.43
+++ libc/include/math.h	13 Nov 2009 01:06:52 -0000
@@ -236,6 +236,7 @@
 extern double nan _PARAMS((const char *));
 extern int finite _PARAMS((double));
 extern double copysign _PARAMS((double, double));
+extern double logb _PARAMS((double));
 extern int ilogb _PARAMS((double));
 
 extern double asinh _PARAMS((double));
@@ -332,6 +333,7 @@
 extern float nanf _PARAMS((const char *));
 extern int finitef _PARAMS((float));
 extern float copysignf _PARAMS((float, float));
+extern float logbf _PARAMS((float));
 extern int ilogbf _PARAMS((float));
 
 extern float asinhf _PARAMS((float));
Index: libm/common/fdlibm.h
===================================================================
RCS file: /cvs/src/src/newlib/libm/common/fdlibm.h,v
retrieving revision 1.6
diff -u -r1.6 fdlibm.h
--- libm/common/fdlibm.h	25 Feb 2005 22:38:46 -0000	1.6
+++ libm/common/fdlibm.h	13 Nov 2009 01:06:53 -0000
@@ -139,7 +139,6 @@
 
 /* Functions that are not documented, and are not in <math.h>.  */
 
-extern double logb __P((double));
 #ifdef _SCALB_INT
 extern double scalb __P((double, int));
 #else
@@ -186,7 +185,6 @@
 extern int    __kernel_rem_pio2 __P((double*,double*,int,int,int,const __int32_t*));
 
 /* Undocumented float functions.  */
-extern float logbf __P((float));
 #ifdef _SCALB_INT
 extern float scalbf __P((float, int));
 #else

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