mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-19 01:11:05 +00:00
Sat Jun 15 18:13:43 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* 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.
This commit is contained in:
parent
26e00f7e61
commit
f04e87f28a
@ -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 <features.h>
|
||||
|
||||
/* 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
|
@ -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
|
||||
|
@ -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.h>
|
||||
|
||||
fpu_control_t __fpu_control = _FPU_DEFAULT;
|
Loading…
Reference in New Issue
Block a user