summaryrefslogtreecommitdiff
path: root/sys/arch/m88k/include/ieee.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-05-04 19:28:44 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-05-04 19:28:44 +0000
commit85cdf88b54e6fd3d08d45d6a2afa96851149b72f (patch)
tree13f84590c26d4c77aa1555aa76fcbfebbeed6c8a /sys/arch/m88k/include/ieee.h
parent3c2215d461a3d1171bb65f36c103ed0bf9f895a3 (diff)
Document the 88110 extended (80-bit) floating point format.
Diffstat (limited to 'sys/arch/m88k/include/ieee.h')
-rw-r--r--sys/arch/m88k/include/ieee.h22
1 files changed, 5 insertions, 17 deletions
diff --git a/sys/arch/m88k/include/ieee.h b/sys/arch/m88k/include/ieee.h
index 975e8b13f4f..a849c33906e 100644
--- a/sys/arch/m88k/include/ieee.h
+++ b/sys/arch/m88k/include/ieee.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee.h,v 1.1 2004/04/26 12:34:05 miod Exp $ */
+/* $OpenBSD: ieee.h,v 1.2 2006/05/04 19:28:43 miod Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,9 +38,6 @@
*
* @(#)ieee.h 8.1 (Berkeley) 6/11/93
*/
-/*
- * Stolen from sparc port
- */
/*
* ieee.h defines the machine-dependent layout of the machine's IEEE
@@ -76,21 +73,14 @@
*
* -149 == -127 - 23 + 1.
*/
-#ifndef __MACHINE_IEEE_H__
-#define __MACHINE_IEEE_H__
#define SNG_EXPBITS 8
#define SNG_FRACBITS 23
#define DBL_EXPBITS 11
#define DBL_FRACBITS 52
-#ifdef notyet
-#define E80_EXPBITS 15
-#define E80_FRACBITS 64
-#endif
-
#define EXT_EXPBITS 15
-#define EXT_FRACBITS 112
+#define EXT_FRACBITS 64
struct ieee_single {
u_int sng_sign:1;
@@ -108,9 +98,8 @@ struct ieee_double {
struct ieee_ext {
u_int ext_sign:1;
u_int ext_exp:15;
- u_int ext_frach:16;
- u_int ext_frachm;
- u_int ext_fraclm;
+ u_int ext_lead:1;
+ u_int ext_frach:31;
u_int ext_fracl;
};
@@ -130,7 +119,7 @@ struct ieee_ext {
#if 0
#define SNG_QUIETNAN (1 << 22)
#define DBL_QUIETNAN (1 << 19)
-#define EXT_QUIETNAN (1 << 15)
+#define EXT_QUIETNAN (1 << 30)
#endif
/*
@@ -139,4 +128,3 @@ struct ieee_ext {
#define SNG_EXP_BIAS 127
#define DBL_EXP_BIAS 1023
#define EXT_EXP_BIAS 16383
-#endif /* __MACHINE_IEEE_H__ */