[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r6850 - /branches/libdfp/libc/sysdeps/s390/fpu/fpu_control.h
- To: commits@xxxxxxxxxx
- Subject: [commits] r6850 - /branches/libdfp/libc/sysdeps/s390/fpu/fpu_control.h
- From: eberlein@xxxxxxxxxx
- Date: Fri, 29 Aug 2008 19:55:35 -0000
Author: eberlein
Date: Fri Aug 29 12:55:35 2008
New Revision: 6850
Log:
2008-08-21 Andreas Krebbel <krebbel1@xxxxxxxxxx>
* sysdeps/s390/fpu/fpu_control.h: Add definitions for the
internally used macros for decoding the floating point control
registers.
Modified:
branches/libdfp/libc/sysdeps/s390/fpu/fpu_control.h
Modified: branches/libdfp/libc/sysdeps/s390/fpu/fpu_control.h
==============================================================================
--- branches/libdfp/libc/sysdeps/s390/fpu/fpu_control.h (original)
+++ branches/libdfp/libc/sysdeps/s390/fpu/fpu_control.h Fri Aug 29 12:55:35 2008
@@ -24,6 +24,19 @@
# include <features.h>
+/* rounding control */
+#define _FPU_RC_NEAREST 0x00 /* RECOMMENDED */
+#define _FPU_RC_DOWN 0x03
+#define _FPU_RC_UP 0x02
+#define _FPU_RC_ZERO 0x01
+
+/* masking of interrupts */
+#define _FPU_MASK_ZM 0x40 /* zero divide */
+#define _FPU_MASK_OM 0x20 /* overflow */
+#define _FPU_MASK_UM 0x10 /* underflow */
+#define _FPU_MASK_XM 0x08 /* inexact */
+#define _FPU_MASK_IM 0x80 /* invalid operation */
+
/* These bits are reserved are not changed. */
# define _FPU_RESERVED 0x070700FC