summaryrefslogtreecommitdiff
path: root/sysdeps/mips/fpu/fenv_libc.h
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2002-03-17 12:07:44 +0000
committerAndreas Jaeger <aj@suse.de>2002-03-17 12:07:44 +0000
commit9ea502f95ca8fb4e744e354030292d1c3f34a485 (patch)
treeeb0417a8f7c0cf1045390a0770a4822c93dcbd43 /sysdeps/mips/fpu/fenv_libc.h
parenteea4471dd408af985c2d5664ee908e3284097451 (diff)
downloadglibc-9ea502f95ca8fb4e744e354030292d1c3f34a485.tar.gz
* sysdeps/mips/fpu/fraiseexcpt.c (__feraiseexcept): Set cause bits.
* sysdeps/mips/fpu/fgetexcptflg.c (__fegetexceptflag): Add comment. * sysdeps/mips/fpu/fclrexcpt.c (__feclearexcept): Clear also cause bits. * sysdeps/mips/fpu/fenv_libc.h (CAUSE_MASK): New. (CAUSE_SHIFT): New.
Diffstat (limited to 'sysdeps/mips/fpu/fenv_libc.h')
-rw-r--r--sysdeps/mips/fpu/fenv_libc.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/sysdeps/mips/fpu/fenv_libc.h b/sysdeps/mips/fpu/fenv_libc.h
index dc30888ada..d971d2c711 100644
--- a/sysdeps/mips/fpu/fenv_libc.h
+++ b/sysdeps/mips/fpu/fenv_libc.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Andreas Jaeger <aj@suse.de>.
@@ -20,10 +20,13 @@
#ifndef _FENV_LIBC_H
#define _FENV_LIBC_H 1
-/* Mask for enabling exceptions. */
-#define ENABLE_MASK 0xF80U
+/* Mask for enabling exceptions and for the CAUSE bits. */
+#define ENABLE_MASK 0x00F80U
+#define CAUSE_MASK 0x1F000U
+
+/* Shift for FE_* flags to get up to the ENABLE bits and the CAUSE bits. */
+#define ENABLE_SHIFT 5
+#define CAUSE_SHIFT 10
-/* Shift for FE_* flags. */
-#define ENABLE_SHIFT 5
#endif /* _FENV_LIBC_H */