summary refs log tree commit diff
path: root/math/math.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-07-08 17:45:03 +0000
committerRoland McGrath <roland@gnu.org>1996-07-08 17:45:03 +0000
commit999493cb4a497063c1cb2354a95db21c7ab496f2 (patch)
treebba675af8be53afce7a56e8e2ff05720c997399e /math/math.h
parentf5cb4a5cbae4310fc0dcc5a1a218596505fcdc8b (diff)
downloadglibc-999493cb4a497063c1cb2354a95db21c7ab496f2.tar.gz
glibc-999493cb4a497063c1cb2354a95db21c7ab496f2.tar.xz
glibc-999493cb4a497063c1cb2354a95db21c7ab496f2.zip
Mon Jul 8 13:37:40 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
	* math/math.h (_Mfloat_, _Mlong_double_): New macros, defined iff not
	already defined to float, long double.  Use those macros for _Mdouble_
	defns when including mathcalls.h.
	* math/Makefile [$(long-double-fcts) != yes] (CPPFLAGS): Append
	-D_Mlong_double_=double.

	Add more -lm functions to -lc because ldexp uses them.
	* math/Makefile (calls): Add s_finite, s_copysign, s_scalbn, s_modf.
	(routines): Remove s_modf, add s_frexpf, s_ldexpf; all but frexp and
	ldexp have both f and l code, and those have f though not l code.

 	memcpy for possibly overlapping strings.
Diffstat (limited to 'math/math.h')
-rw-r--r--math/math.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/math/math.h b/math/math.h
index fbec2e89ae..4d08cd94b5 100644
--- a/math/math.h
+++ b/math/math.h
@@ -62,19 +62,26 @@ __BEGIN_DECLS
 
 #ifdef __USE_MISC
 
-/* Include the file of declarations again, this type using `float'
+
+/* Include the file of declarations again, this time using `float'
    instead of `double' and appending f to each function name.  */
 
-#define _Mdouble_ 		float
+#ifndef _Mfloat_
+#define _Mfloat_		float
+#endif
+#define _Mdouble_ 		_Mfloat_
 #define __MATH_PRECNAME(name,r)	name##f##r
 #include <mathcalls.h>
 #undef	_Mdouble_
 #undef	__MATH_PRECNAME
 
-/* Include the file of declarations again, this type using `long double'
+/* Include the file of declarations again, this time using `long double'
    instead of `double' and appending l to each function name.  */
 
-#define _Mdouble_ 		long double
+#ifndef _Mlong_double_
+#define _Mlong_double_		long double
+#endif
+#define _Mdouble_ 		_Mlong_double_
 #define __MATH_PRECNAME(name,r)	name##l##r
 #include <mathcalls.h>
 #undef	_Mdouble_