From ba56050a834a5c30ea2545cd786cabc0ab52d9ee Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 1 May 1992 18:47:39 +0000 Subject: [PATCH] entered into RCS --- sysdeps/m68k/fpu/asin.c | 2 +- sysdeps/m68k/fpu/atan.c | 2 +- sysdeps/m68k/fpu/atanh.c | 2 ++ sysdeps/m68k/fpu/ceil.c | 18 +----------------- sysdeps/m68k/fpu/cos.c | 2 +- sysdeps/m68k/fpu/cosh.c | 2 +- sysdeps/m68k/fpu/exp.c | 2 +- sysdeps/m68k/fpu/expm1.c | 5 +++-- sysdeps/m68k/fpu/fabs.c | 2 +- sysdeps/m68k/fpu/fl.h | 9 +++++++-- sysdeps/m68k/fpu/floor.c | 2 +- sysdeps/m68k/fpu/frexp.c | 19 ++++++++++--------- sysdeps/m68k/fpu/isnan.c | 2 +- sysdeps/m68k/fpu/log.c | 2 +- sysdeps/m68k/fpu/log10.c | 2 +- sysdeps/m68k/fpu/log1p.c | 2 ++ sysdeps/m68k/fpu/rint.c | 3 +++ sysdeps/m68k/fpu/sin.c | 2 +- sysdeps/m68k/fpu/sinh.c | 2 +- sysdeps/m68k/fpu/sqrt.c | 2 +- sysdeps/m68k/fpu/switch/Makefile | 8 ++++---- sysdeps/m68k/fpu/switch/switch.c | 2 +- sysdeps/m68k/fpu/tan.c | 2 +- sysdeps/m68k/fpu/tanh.c | 2 +- 24 files changed, 48 insertions(+), 50 deletions(-) create mode 100644 sysdeps/m68k/fpu/atanh.c create mode 100644 sysdeps/m68k/fpu/log1p.c create mode 100644 sysdeps/m68k/fpu/rint.c diff --git a/sysdeps/m68k/fpu/asin.c b/sysdeps/m68k/fpu/asin.c index 44a8e5791b..0e3e58f697 100644 --- a/sysdeps/m68k/fpu/asin.c +++ b/sysdeps/m68k/fpu/asin.c @@ -1,2 +1,2 @@ #define FUNC asin -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/atan.c b/sysdeps/m68k/fpu/atan.c index 71ec30362a..b9d428e170 100644 --- a/sysdeps/m68k/fpu/atan.c +++ b/sysdeps/m68k/fpu/atan.c @@ -1,2 +1,2 @@ #define FUNC atan -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/atanh.c b/sysdeps/m68k/fpu/atanh.c new file mode 100644 index 0000000000..d4636ec035 --- /dev/null +++ b/sysdeps/m68k/fpu/atanh.c @@ -0,0 +1,2 @@ +#define FUNC atanh +#include diff --git a/sysdeps/m68k/fpu/ceil.c b/sysdeps/m68k/fpu/ceil.c index d65ab0e05d..b4605e1b29 100644 --- a/sysdeps/m68k/fpu/ceil.c +++ b/sysdeps/m68k/fpu/ceil.c @@ -1,20 +1,4 @@ -/* Copyright (C) 1990 Free Software Foundation, Inc. -This file is part of the GNU C Library. - -The GNU C Library is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 1, or (at your option) -any later version. - -The GNU C Library is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with the GNU C Library; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define FUNC ceil -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/cos.c b/sysdeps/m68k/fpu/cos.c index db6b8a4935..fa50130af7 100644 --- a/sysdeps/m68k/fpu/cos.c +++ b/sysdeps/m68k/fpu/cos.c @@ -1,2 +1,2 @@ #define FUNC cos -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/cosh.c b/sysdeps/m68k/fpu/cosh.c index cc91b2ea9b..78a81943c6 100644 --- a/sysdeps/m68k/fpu/cosh.c +++ b/sysdeps/m68k/fpu/cosh.c @@ -1,2 +1,2 @@ #define FUNC cosh -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/exp.c b/sysdeps/m68k/fpu/exp.c index 2748fd351f..2649d72143 100644 --- a/sysdeps/m68k/fpu/exp.c +++ b/sysdeps/m68k/fpu/exp.c @@ -1,3 +1,3 @@ #define FUNC exp #define OP etox -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/expm1.c b/sysdeps/m68k/fpu/expm1.c index 88a34dba66..19f1802e56 100644 --- a/sysdeps/m68k/fpu/expm1.c +++ b/sysdeps/m68k/fpu/expm1.c @@ -1,2 +1,3 @@ -#define FUNC expm1 -#include <../sysdeps/m68k/68881/acos.c> +#define FUNC __expm1 +#define OP expm1 +#include diff --git a/sysdeps/m68k/fpu/fabs.c b/sysdeps/m68k/fpu/fabs.c index 0f8feeab97..f9538a599c 100644 --- a/sysdeps/m68k/fpu/fabs.c +++ b/sysdeps/m68k/fpu/fabs.c @@ -1,3 +1,3 @@ #define FUNC fabs #define OP abs -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/fl.h b/sysdeps/m68k/fpu/fl.h index add735122e..098e880601 100644 --- a/sysdeps/m68k/fpu/fl.h +++ b/sysdeps/m68k/fpu/fl.h @@ -6,7 +6,10 @@ /* ansidecl.m4 here inserts the ieee file. Kludge o rama. $) ENDCOMMENT INCLUDE($sysdeps/ieee754/fl.h$) STARTCOMMENT */ -#if defined(FLT_ROUNDS) && defined(__GNUC__) +#ifndef __need_HUGE_VAL + +#ifdef __GNUC__ + #undef FLT_ROUNDS /* Interrogate the 68881 to find the current rounding mode. */ @@ -33,4 +36,6 @@ DEFUN_VOID(__flt_rounds) #define FLT_ROUNDS (__flt_rounds()) -#endif +#endif /* GCC. */ + +#endif /* Don't need HUGE_VAL. */ diff --git a/sysdeps/m68k/fpu/floor.c b/sysdeps/m68k/fpu/floor.c index bcd6be32a7..92a2ca68bb 100644 --- a/sysdeps/m68k/fpu/floor.c +++ b/sysdeps/m68k/fpu/floor.c @@ -1,3 +1,3 @@ #define FUNC floor #define OP intrz -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/frexp.c b/sysdeps/m68k/fpu/frexp.c index 6ab7c5b937..de74851de9 100644 --- a/sysdeps/m68k/fpu/frexp.c +++ b/sysdeps/m68k/fpu/frexp.c @@ -1,19 +1,20 @@ /* Copyright (C) 1991 Free Software Foundation, Inc. This file is part of the GNU C Library. -The GNU C Library is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 1, or (at your option) -any later version. +The GNU C Library is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public License as +published by the Free Software Foundation; either version 2 of the +License, or (at your option) any later version. The GNU C Library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Library General Public License for more details. -You should have received a copy of the GNU General Public License -along with the GNU C Library; see the file COPYING. If not, write to -the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +You should have received a copy of the GNU Library General Public +License along with the GNU C Library; see the file COPYING.LIB. If +not, write to the Free Software Foundation, Inc., 675 Mass Ave, +Cambridge, MA 02139, USA. */ #include #define __NO_MATH_INLINES diff --git a/sysdeps/m68k/fpu/isnan.c b/sysdeps/m68k/fpu/isnan.c index f74a05b4ba..e90c691cca 100644 --- a/sysdeps/m68k/fpu/isnan.c +++ b/sysdeps/m68k/fpu/isnan.c @@ -1,2 +1,2 @@ #define FUNC __isnan -#include <../sysdeps/m68k/68881/isinf.c> +#include <__isinf.c> diff --git a/sysdeps/m68k/fpu/log.c b/sysdeps/m68k/fpu/log.c index c5f5a5bf99..4de3346545 100644 --- a/sysdeps/m68k/fpu/log.c +++ b/sysdeps/m68k/fpu/log.c @@ -1,3 +1,3 @@ #define FUNC log #define OP logn -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/log10.c b/sysdeps/m68k/fpu/log10.c index 9a9923da95..246b69a364 100644 --- a/sysdeps/m68k/fpu/log10.c +++ b/sysdeps/m68k/fpu/log10.c @@ -1,2 +1,2 @@ #define FUNC log10 -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/log1p.c b/sysdeps/m68k/fpu/log1p.c new file mode 100644 index 0000000000..028783819b --- /dev/null +++ b/sysdeps/m68k/fpu/log1p.c @@ -0,0 +1,2 @@ +#define FUNC log1p +#include diff --git a/sysdeps/m68k/fpu/rint.c b/sysdeps/m68k/fpu/rint.c new file mode 100644 index 0000000000..288ae81ce4 --- /dev/null +++ b/sysdeps/m68k/fpu/rint.c @@ -0,0 +1,3 @@ +#define FUNC __rint +#define OP intr +#include diff --git a/sysdeps/m68k/fpu/sin.c b/sysdeps/m68k/fpu/sin.c index 6ee32e7986..28ac9e50c3 100644 --- a/sysdeps/m68k/fpu/sin.c +++ b/sysdeps/m68k/fpu/sin.c @@ -1,2 +1,2 @@ #define FUNC sin -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/sinh.c b/sysdeps/m68k/fpu/sinh.c index 51c8b3f922..fae7c71459 100644 --- a/sysdeps/m68k/fpu/sinh.c +++ b/sysdeps/m68k/fpu/sinh.c @@ -1,2 +1,2 @@ #define FUNC sinh -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/sqrt.c b/sysdeps/m68k/fpu/sqrt.c index 3ba32bfcce..2365b61780 100644 --- a/sysdeps/m68k/fpu/sqrt.c +++ b/sysdeps/m68k/fpu/sqrt.c @@ -1,2 +1,2 @@ #define FUNC sqrt -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/switch/Makefile b/sysdeps/m68k/fpu/switch/Makefile index 9482471597..fd8d7c11f4 100644 --- a/sysdeps/m68k/fpu/switch/Makefile +++ b/sysdeps/m68k/fpu/switch/Makefile @@ -22,16 +22,16 @@ sysdep_routines := $(sysdep_routines) switch # Find all the sources that have 68881 versions. +68881-sources := \ - $(notdir $(wildcard $(addprefix $(filter %/68881,$(sysdirs)),$(sources)))) + $(notdir $(wildcard $(addprefix $(filter %/fpu,$(sysdirs)),$(sources)))) -# Sysdep directories other than 68881 and 68881-sw (this one). -+non68881-dirs := $(filter-out %/68881 %/68881-switch,$(+sysdep_dirs)) +# Sysdep directories other than fpu and fpu/switch (this one). ++non68881-dirs := $(filter-out %/fpu %/fpu/switch,$(+sysdep_dirs)) # Get a non-68881 version of the target. +non68881-version = $(firstword $(wildcard $(addsuffix /$@,$(+non68881-dirs)))) # Directory containing 68881 sources. -+68881-dir := $(filter %/68881,$(+sysdep_dirs)) ++68881-dir := $(filter %/fpu,$(+sysdep_dirs)) # For all the files that have 68881 versions and don't exist already in # the source directory (math), automatically make ones that switch between diff --git a/sysdeps/m68k/fpu/switch/switch.c b/sysdeps/m68k/fpu/switch/switch.c index b1deef2e98..057bd1509a 100644 --- a/sysdeps/m68k/fpu/switch/switch.c +++ b/sysdeps/m68k/fpu/switch/switch.c @@ -18,7 +18,7 @@ Cambridge, MA 02139, USA. */ #include #include -#include <68881-switch.h> +#include <68881-sw.h> /* The signal that is sent when a 68881 instruction diff --git a/sysdeps/m68k/fpu/tan.c b/sysdeps/m68k/fpu/tan.c index 2adc921247..53b3b5342e 100644 --- a/sysdeps/m68k/fpu/tan.c +++ b/sysdeps/m68k/fpu/tan.c @@ -1,2 +1,2 @@ #define FUNC tan -#include "acos-68881.c" +#include diff --git a/sysdeps/m68k/fpu/tanh.c b/sysdeps/m68k/fpu/tanh.c index 1815c0ae5b..cc6739539a 100644 --- a/sysdeps/m68k/fpu/tanh.c +++ b/sysdeps/m68k/fpu/tanh.c @@ -1,2 +1,2 @@ #define FUNC tanh -#include "acos-68881.c" +#include