From dc0a39c576e0a8b2845b131a001a4db53693eaa1 Mon Sep 17 00:00:00 2001 From: eberlein Date: Fri, 29 Aug 2008 19:55:35 +0000 Subject: 2008-08-21 Andreas Krebbel * sysdeps/s390/fpu/fpu_control.h: Add definitions for the internally used macros for decoding the floating point control registers. git-svn-id: svn://svn.eglibc.org/branches/libdfp@6850 7b3dc134-2b1b-0410-93df-9e9f96275f8d --- libc/sysdeps/s390/fpu/fpu_control.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/libc/sysdeps/s390/fpu/fpu_control.h b/libc/sysdeps/s390/fpu/fpu_control.h index 137a4d5d4..551019a1f 100644 --- a/libc/sysdeps/s390/fpu/fpu_control.h +++ b/libc/sysdeps/s390/fpu/fpu_control.h @@ -24,6 +24,19 @@ # include +/* 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 -- cgit v1.2.3