summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/include/ieee.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/m68k/include/ieee.h')
-rw-r--r--sys/arch/m68k/include/ieee.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/arch/m68k/include/ieee.h b/sys/arch/m68k/include/ieee.h
index 05f903c2286..3ed9aad9885 100644
--- a/sys/arch/m68k/include/ieee.h
+++ b/sys/arch/m68k/include/ieee.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee.h,v 1.3 2006/01/16 22:05:59 miod Exp $ */
+/* $OpenBSD: ieee.h,v 1.4 2008/09/07 20:36:06 martynas Exp $ */
/* $NetBSD: ieee.h,v 1.2 1994/11/20 20:53:10 deraadt Exp $ */
/*
@@ -79,11 +79,20 @@
#define SNG_FRACBITS 23
#define DBL_EXPBITS 11
+#define DBL_FRACHBITS 20
+#define DBL_FRACLBITS 32
#define DBL_FRACBITS 52
#define EXT_EXPBITS 15
+#define EXT_FRACHBITS 32
+#define EXT_FRACLBITS 32
#define EXT_FRACBITS 64
+#define EXT_TO_ARRAY32(p, a) do { \
+ (a)[0] = (uint32_t)(p)->ext_fracl; \
+ (a)[1] = (uint32_t)(p)->ext_frach; \
+} while(0)
+
struct ieee_single {
u_int sng_sign:1;
u_int sng_exp:8;
@@ -101,8 +110,7 @@ struct ieee_ext {
u_int ext_sign:1;
u_int ext_exp:15;
u_int ext_zero:16;
- u_int ext_int:1;
- u_int ext_frach:31;
+ u_int ext_frach;
u_int ext_fracl;
};