From: Roland McGrath Date: Sun, 16 Jun 1996 03:49:08 +0000 (+0000) Subject: Sat Jun 15 18:13:43 1996 Roland McGrath X-Git-Tag: glibc-2.16-ports-before-merge~3783 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f04e87f28a3e6a3dd025ccf5a76b836870f3a07b;p=thirdparty%2Fglibc.git Sat Jun 15 18:13:43 1996 Roland McGrath * math/Makefile (headers): Add fpu_control.h. (aux): New variable, list fpu_control and setfpucw. * sysdeps/generic/fpu_control.c: New file. * sysdeps/stub/fpu_control.h: New file. * sysdeps/unix/sysv/linux/m68k/fpu_control.h: Moved to ... * sysdeps/m68k/fpu_control.h: here. * sysdeps/unix/sysv/linux/i386/fpu_control.h: Moved to ... * sysdeps/i386/fpu_control.h: here. * sysdeps/unix/sysv/linux/alpha/fpu_control.h: Moved to ... * sysdeps/alpha/fpu/fpu_control.h: here. Fixed copyright. * sysdeps/unix/sysv/linux/alpha/Makefile (sysdep_routines): Remove setfpucw, fpu_control. * sysdeps/unix/sysv/linux/alpha/fpu_control.c: File removed. * sysdeps/unix/sysv/linux/setfpucw.c: Moved to ... * sysdeps/generic/setfpucw.c: here. (__fpu_control): Variable removed. (__setfpucw): Use SET even if zero. --- diff --git a/sysdeps/unix/sysv/linux/alpha/fpu_control.h b/sysdeps/alpha/fpu/fpu_control.h similarity index 81% rename from sysdeps/unix/sysv/linux/alpha/fpu_control.h rename to sysdeps/alpha/fpu/fpu_control.h index 782f33e0403..219ea55f249 100644 --- a/sysdeps/unix/sysv/linux/alpha/fpu_control.h +++ b/sysdeps/alpha/fpu/fpu_control.h @@ -1,15 +1,23 @@ -/* Copyright (C) 1993 Olaf Flebbe -This file is part of the Linux C Library. +/* FPU control word bits. Alpha version. +Copyright (C) 1996 Free Software Foundation, Inc. +Contributed by Olaf Flebbe. -The Linux C Library is free software; you can redistribute it and/or +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 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 Linux C Library is distributed in the hope that it will be useful, +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 -Library General Public License for more details. */ +Library General Public License for more details. + +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. */ #ifndef _ALPHA_FPU_CONTROL_H #define _ALPHA_FPU_CONTROL_H @@ -28,7 +36,7 @@ Library General Public License for more details. */ * OM: Overflow mask * UM: Underflow mask * PM: Precision (inexact result) mask - * + * * Mask bit is 1 means no interrupt. * * PC: Precision control @@ -51,7 +59,7 @@ Library General Public License for more details. */ #include /* masking of interrupts */ -#define _FPU_MASK_IM 0x01 +#define _FPU_MASK_IM 0x01 #define _FPU_MASK_DM 0x02 #define _FPU_MASK_ZM 0x04 #define _FPU_MASK_OM 0x08 @@ -84,7 +92,7 @@ Library General Public License for more details. */ one can use /d to get round to +infinity with no extra overhead (so long as the default isn't changed, of course...) - exceptions on overflow, zero divide and NaN */ -#define _FPU_DEFAULT 0x1f72 +#define _FPU_DEFAULT 0x1f72 /* IEEE: same as above, but exceptions */ #define _FPU_IEEE 0x1f7f diff --git a/sysdeps/unix/sysv/linux/m68k/fpu_control.h b/sysdeps/m68k/fpu_control.h similarity index 100% rename from sysdeps/unix/sysv/linux/m68k/fpu_control.h rename to sysdeps/m68k/fpu_control.h diff --git a/sysdeps/unix/sysv/linux/alpha/Makefile b/sysdeps/unix/sysv/linux/alpha/Makefile index e6e421da9d0..9d596719daf 100644 --- a/sysdeps/unix/sysv/linux/alpha/Makefile +++ b/sysdeps/unix/sysv/linux/alpha/Makefile @@ -1,6 +1,6 @@ ifeq ($(subdir), misc) sysdep_headers += alpha/ptrace.h alpha/regdef.h -sysdep_routines += ieee_get_fp_control ieee_set_fp_control fpu_control \ - setfpucw sethae ioperm osf_sigprocmask fstatfs statfs +sysdep_routines += ieee_get_fp_control ieee_set_fp_control \ + sethae ioperm osf_sigprocmask fstatfs statfs endif diff --git a/sysdeps/unix/sysv/linux/alpha/fpu_control.c b/sysdeps/unix/sysv/linux/alpha/fpu_control.c deleted file mode 100644 index 20c032a03c9..00000000000 --- a/sysdeps/unix/sysv/linux/alpha/fpu_control.c +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (C) 1993, 1995 Free Software Foundation, Inc. - Contributed by David Mosberger (davidm@azstarnet.com). - -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 -Library General Public License for more details. - -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 - -fpu_control_t __fpu_control = _FPU_DEFAULT;