diff options
author | Thomas Fitzsimmons <fitzsim@redhat.com> | 2001-12-19 03:03:43 +0000 |
---|---|---|
committer | Thomas Fitzsimmons <fitzsim@redhat.com> | 2001-12-19 03:03:43 +0000 |
commit | 60565ed65755b5d6803dd5eb235973031bdf9d5c (patch) | |
tree | 6b880a8506a1757a3c71abff3e8ddf7ff2c1f217 /newlib | |
parent | 08e857b49a2fe0726bd8123f0c6a195cf58ea320 (diff) | |
download | newlib-60565ed65755b5d6803dd5eb235973031bdf9d5c.zip newlib-60565ed65755b5d6803dd5eb235973031bdf9d5c.tar.gz newlib-60565ed65755b5d6803dd5eb235973031bdf9d5c.tar.bz2 |
2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com>
* libc/machine/i386/f_*: Move to libm/machine/i386.
2001-12-18 Joel Sherrill <joel@OARcorp.com>
* libm/machine/Makefile.am: Add dummy doc stub so
"make info" works.
2001-12-17 Joel Sherrill <joel@OARcorp.com>
* libc/include/sys/types.h (ino_t): RTEMS uses long also.
Diffstat (limited to 'newlib')
25 files changed, 86 insertions, 22 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index b5df761..5b64e7b 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -3,6 +3,19 @@ * Makefile.am (DOCDIR): Force to empty string when doc directory is not present. +2001-12-18 Thomas Fitzsimmons <fitzsim@redhat.com> + + * libc/machine/i386/f_*: Move to libm/machine/i386. + +2001-12-18 Joel Sherrill <joel@OARcorp.com> + + * libm/machine/Makefile.am: Add dummy doc stub so + "make info" works. + +2001-12-17 Joel Sherrill <joel@OARcorp.com> + + * libc/include/sys/types.h (ino_t): RTEMS uses long also. + 2001-12-17 Thomas Fitzsimmons <fitzsim@redhat.com> * libc/stdlib/Makefile.am (LIB_COMPILE): Change to equal diff --git a/newlib/NEWS b/newlib/NEWS index 6e3bd90..9a606f2 100644 --- a/newlib/NEWS +++ b/newlib/NEWS @@ -1,6 +1,7 @@ *** Major changes in newlib version 1.10.0: * libtool support for i[3456]86-pc-linux native builds +* addition of libm/machine/i386 directory, for i386 fast math routines *** Major changes in newlib version 1.9.0: diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/include/sys/types.h index 9c932a6..96d25c4 100644 --- a/newlib/libc/include/sys/types.h +++ b/newlib/libc/include/sys/types.h @@ -87,7 +87,7 @@ struct itimerspec { typedef long daddr_t; typedef char * caddr_t; -#ifdef __MS_types__ +#if defined(__MS_types__) || defined(__rtems__) typedef unsigned long ino_t; #else #ifdef __sparc__ @@ -218,7 +218,7 @@ typedef _TIMER_T_ timer_t; #define __timer_t_defined #endif -#ifdef __CYGWIN__ +#if defined(__CYGWIN__) || defined(__rtems__) typedef long useconds_t; #endif diff --git a/newlib/libc/machine/i386/Makefile.am b/newlib/libc/machine/i386/Makefile.am index 804345a..100d8c4 100644 --- a/newlib/libc/machine/i386/Makefile.am +++ b/newlib/libc/machine/i386/Makefile.am @@ -12,10 +12,7 @@ endif LIB_SOURCES = \ memchr.S memcmp.S memcpy.S memset.S strchr.S \ - memmove.S strlen.S f_atan2.S f_atan2f.S f_exp.c f_expf.c \ - f_frexp.S f_frexpf.S f_log.S f_logf.S f_log10.S f_log10f.S \ - f_ldexp.S f_ldexpf.S f_pow.c f_powf.c f_tan.S f_tanf.S \ - $(mach_add_src) + memmove.S strlen.S $(mach_add_src) i386mach.h libi386_la_LDFLAGS = -Xcompiler -nostdlib diff --git a/newlib/libc/machine/i386/Makefile.in b/newlib/libc/machine/i386/Makefile.in index 506e485..7866af9 100644 --- a/newlib/libc/machine/i386/Makefile.in +++ b/newlib/libc/machine/i386/Makefile.in @@ -91,10 +91,7 @@ INCLUDES = -I $(newlib_basedir)/libm/common $(NEWLIB_CFLAGS) $(CROSS_CFLAGS) $(T LIB_SOURCES = \ memchr.S memcmp.S memcpy.S memset.S strchr.S \ - memmove.S strlen.S f_atan2.S f_atan2f.S f_exp.c f_expf.c \ - f_frexp.S f_frexpf.S f_log.S f_logf.S f_log10.S f_log10f.S \ - f_ldexp.S f_ldexpf.S f_pow.c f_powf.c f_tan.S f_tanf.S \ - $(mach_add_src) + memmove.S strlen.S $(mach_add_src) i386mach.h libi386_la_LDFLAGS = -Xcompiler -nostdlib @@ -119,18 +116,12 @@ CPPFLAGS = @CPPFLAGS@ LIBS = @LIBS@ lib_a_LIBADD = @USE_LIBTOOL_FALSE@lib_a_OBJECTS = memchr.o memcmp.o memcpy.o memset.o \ -@USE_LIBTOOL_FALSE@strchr.o memmove.o strlen.o f_atan2.o f_atan2f.o \ -@USE_LIBTOOL_FALSE@f_exp.o f_expf.o f_frexp.o f_frexpf.o f_log.o \ -@USE_LIBTOOL_FALSE@f_logf.o f_log10.o f_log10f.o f_ldexp.o f_ldexpf.o \ -@USE_LIBTOOL_FALSE@f_pow.o f_powf.o f_tan.o f_tanf.o +@USE_LIBTOOL_FALSE@strchr.o memmove.o strlen.o LTLIBRARIES = $(noinst_LTLIBRARIES) libi386_la_LIBADD = @USE_LIBTOOL_TRUE@libi386_la_OBJECTS = memchr.lo memcmp.lo memcpy.lo \ -@USE_LIBTOOL_TRUE@memset.lo strchr.lo memmove.lo strlen.lo f_atan2.lo \ -@USE_LIBTOOL_TRUE@f_atan2f.lo f_exp.lo f_expf.lo f_frexp.lo f_frexpf.lo \ -@USE_LIBTOOL_TRUE@f_log.lo f_logf.lo f_log10.lo f_log10f.lo f_ldexp.lo \ -@USE_LIBTOOL_TRUE@f_ldexpf.lo f_pow.lo f_powf.lo f_tan.lo f_tanf.lo +@USE_LIBTOOL_TRUE@memset.lo strchr.lo memmove.lo strlen.lo CFLAGS = @CFLAGS@ COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) diff --git a/newlib/libm/machine/Makefile.am b/newlib/libm/machine/Makefile.am index 65b5b40..d452c7f 100644 --- a/newlib/libm/machine/Makefile.am +++ b/newlib/libm/machine/Makefile.am @@ -13,3 +13,5 @@ endif # USE_LIBTOOL ACLOCAL_AMFLAGS = -I ../.. CONFIG_STATUS_DEPENDENCIES = $(newlib_basedir)/configure.host + +doc: diff --git a/newlib/libm/machine/Makefile.in b/newlib/libm/machine/Makefile.in index ea87ea6..82e207f 100644 --- a/newlib/libm/machine/Makefile.in +++ b/newlib/libm/machine/Makefile.in @@ -418,6 +418,8 @@ clean-generic maintainer-clean-generic clean mostlyclean distclean \ maintainer-clean +doc: + # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: diff --git a/newlib/libm/machine/i386/Makefile.am b/newlib/libm/machine/i386/Makefile.am index 1544dfa..901cf59 100644 --- a/newlib/libm/machine/i386/Makefile.am +++ b/newlib/libm/machine/i386/Makefile.am @@ -7,7 +7,7 @@ INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) $(CROSS_C LIB_SOURCES = \ f_atan2.S f_atan2f.S f_exp.c f_expf.c \ f_frexp.S f_frexpf.S f_log.S f_logf.S f_log10.S f_log10f.S \ - f_ldexp.S f_ldexpf.S f_pow.c f_powf.c f_tan.S f_tanf.S + f_ldexp.S f_ldexpf.S f_pow.c f_powf.c f_tan.S f_tanf.S f_math.h i386mach.h libi386_la_LDFLAGS = -Xcompiler -nostdlib diff --git a/newlib/libm/machine/i386/Makefile.in b/newlib/libm/machine/i386/Makefile.in index baea748..7436536 100644 --- a/newlib/libm/machine/i386/Makefile.in +++ b/newlib/libm/machine/i386/Makefile.in @@ -90,7 +90,7 @@ INCLUDES = -I $(newlib_basedir)/../newlib/libm/common $(NEWLIB_CFLAGS) $(CROSS_C LIB_SOURCES = \ f_atan2.S f_atan2f.S f_exp.c f_expf.c \ f_frexp.S f_frexpf.S f_log.S f_logf.S f_log10.S f_log10f.S \ - f_ldexp.S f_ldexpf.S f_pow.c f_powf.c f_tan.S f_tanf.S + f_ldexp.S f_ldexpf.S f_pow.c f_powf.c f_tan.S f_tanf.S f_math.h i386mach.h libi386_la_LDFLAGS = -Xcompiler -nostdlib diff --git a/newlib/libm/machine/i386/f_atan2.S b/newlib/libm/machine/i386/f_atan2.S index 51ac981..5b44a49 100644 --- a/newlib/libm/machine/i386/f_atan2.S +++ b/newlib/libm/machine/i386/f_atan2.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of atan2 using Intel float instructions. @@ -31,3 +33,5 @@ SYM (_f_atan2): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_atan2f.S b/newlib/libm/machine/i386/f_atan2f.S index 092fec4..babd7ff 100644 --- a/newlib/libm/machine/i386/f_atan2f.S +++ b/newlib/libm/machine/i386/f_atan2f.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of atan2f using Intel float instructions. @@ -31,3 +33,5 @@ SYM (_f_atan2f): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_exp.c b/newlib/libm/machine/i386/f_exp.c index a7fb055..a348cbe 100644 --- a/newlib/libm/machine/i386/f_exp.c +++ b/newlib/libm/machine/i386/f_exp.c @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of exp using Intel float instructions. @@ -42,4 +44,4 @@ double _f_exp (double x) return x; } - +#endif diff --git a/newlib/libm/machine/i386/f_expf.c b/newlib/libm/machine/i386/f_expf.c index 4387727..6b86e89 100644 --- a/newlib/libm/machine/i386/f_expf.c +++ b/newlib/libm/machine/i386/f_expf.c @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of exp using Intel float instructions. @@ -42,4 +44,4 @@ float _f_expf (float x) return x; } - +#endif diff --git a/newlib/libm/machine/i386/f_frexp.S b/newlib/libm/machine/i386/f_frexp.S index 58397b7..0aabb20 100644 --- a/newlib/libm/machine/i386/f_frexp.S +++ b/newlib/libm/machine/i386/f_frexp.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of frexp using Intel float instructions. @@ -42,3 +44,5 @@ SYM (_f_frexp): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_frexpf.S b/newlib/libm/machine/i386/f_frexpf.S index 13d5a82..7b37361 100644 --- a/newlib/libm/machine/i386/f_frexpf.S +++ b/newlib/libm/machine/i386/f_frexpf.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of frexpf using Intel float instructions. @@ -42,3 +44,5 @@ SYM (_f_frexpf): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_ldexp.S b/newlib/libm/machine/i386/f_ldexp.S index af6b058..8699254 100644 --- a/newlib/libm/machine/i386/f_ldexp.S +++ b/newlib/libm/machine/i386/f_ldexp.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of ldexp using Intel float instructions. @@ -32,3 +34,5 @@ SYM (_f_ldexp): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_ldexpf.S b/newlib/libm/machine/i386/f_ldexpf.S index cded4cd..6fcf045 100644 --- a/newlib/libm/machine/i386/f_ldexpf.S +++ b/newlib/libm/machine/i386/f_ldexpf.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of ldexpf using Intel float instructions. @@ -32,3 +34,5 @@ SYM (_f_ldexpf): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_log.S b/newlib/libm/machine/i386/f_log.S index e0eb7e0..79df23e 100644 --- a/newlib/libm/machine/i386/f_log.S +++ b/newlib/libm/machine/i386/f_log.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of log using Intel float instructions. @@ -34,3 +36,5 @@ SYM (_f_log): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_log10.S b/newlib/libm/machine/i386/f_log10.S index eed997f..440647e 100644 --- a/newlib/libm/machine/i386/f_log10.S +++ b/newlib/libm/machine/i386/f_log10.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of log10 using Intel float instructions. @@ -34,3 +36,5 @@ SYM (_f_log10): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_log10f.S b/newlib/libm/machine/i386/f_log10f.S index 5f781e3..32a8e76 100644 --- a/newlib/libm/machine/i386/f_log10f.S +++ b/newlib/libm/machine/i386/f_log10f.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of logf using Intel float instructions. @@ -34,3 +36,5 @@ SYM (_f_log10f): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_logf.S b/newlib/libm/machine/i386/f_logf.S index 3620c05..614ca3a 100644 --- a/newlib/libm/machine/i386/f_logf.S +++ b/newlib/libm/machine/i386/f_logf.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of logf using Intel float instructions. @@ -34,3 +36,5 @@ SYM (_f_logf): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_pow.c b/newlib/libm/machine/i386/f_pow.c index ac7dcfe..fca40c7 100644 --- a/newlib/libm/machine/i386/f_pow.c +++ b/newlib/libm/machine/i386/f_pow.c @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of pow using Intel float instructions. @@ -42,3 +44,4 @@ double _f_pow (double x, double y) return pow (x,y); } +#endif diff --git a/newlib/libm/machine/i386/f_powf.c b/newlib/libm/machine/i386/f_powf.c index 501b6b1..2daa5b0 100644 --- a/newlib/libm/machine/i386/f_powf.c +++ b/newlib/libm/machine/i386/f_powf.c @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of pow using Intel float instructions. @@ -42,3 +44,4 @@ float _f_powf (float x, float y) return powf (x,y); } +#endif diff --git a/newlib/libm/machine/i386/f_tan.S b/newlib/libm/machine/i386/f_tan.S index ae0431f..7b13c4e 100644 --- a/newlib/libm/machine/i386/f_tan.S +++ b/newlib/libm/machine/i386/f_tan.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of tan using Intel float instructions. @@ -31,3 +33,5 @@ SYM (_f_tan): leave ret + +#endif diff --git a/newlib/libm/machine/i386/f_tanf.S b/newlib/libm/machine/i386/f_tanf.S index 23ba737..3d0b903 100644 --- a/newlib/libm/machine/i386/f_tanf.S +++ b/newlib/libm/machine/i386/f_tanf.S @@ -8,6 +8,8 @@ * ==================================================== */ +#if !defined(_SOFT_FLOAT) + /* Fast version of tanf using Intel float instructions. @@ -31,3 +33,5 @@ SYM (_f_tanf): leave ret + +#endif |