summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/spmath/float.h
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2004-01-02 14:39:02 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2004-01-02 14:39:02 +0000
commitd4452b585fb86c458cd7c3f8f4bba7f5f7994af9 (patch)
tree643c5457d1bb4fb6d582b20f1bd8c5329935d5b9 /sys/arch/hppa/spmath/float.h
parent0103523c358a53f099d4a8907174e9ce004aa934 (diff)
apparently my understanding of '{FLT,DBL,LDBL}_{MIN,MAX}_EXP' ahs
been wrong and thus proven by many and there change it back to what it is meaning explained in http://www-ccs.ucsd.edu/c/float.html . also fix spmath to use it's own consts instead of (now) off by one float.h values thus to avoid any kind of binary changes.
Diffstat (limited to 'sys/arch/hppa/spmath/float.h')
-rw-r--r--sys/arch/hppa/spmath/float.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/hppa/spmath/float.h b/sys/arch/hppa/spmath/float.h
index 1039eb8fe72..3d6c56c236b 100644
--- a/sys/arch/hppa/spmath/float.h
+++ b/sys/arch/hppa/spmath/float.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: float.h,v 1.6 2002/09/20 19:26:59 mickey Exp $ */
+/* $OpenBSD: float.h,v 1.7 2004/01/02 14:39:01 mickey Exp $ */
/*
(c) Copyright 1986 HEWLETT-PACKARD COMPANY
To anyone who acknowledges that this file is provided "AS IS"
@@ -305,25 +305,28 @@ typedef struct dint dbl_integer;
* Define the different precisions' parameters.
*/
#define SGL_BITLENGTH 32
+#define SGL_EMAX 127
#define SGL_BIAS 127
#define SGL_WRAP 192
-#define SGL_INFINITY_EXPONENT (FLT_MAX_EXP+SGL_BIAS+1)
+#define SGL_INFINITY_EXPONENT (SGL_EMAX+SGL_BIAS+1)
#define SGL_THRESHOLD 32
#define SGL_EXP_LENGTH 8
#define SGL_P 24
#define DBL_BITLENGTH 64
+#define DBL_EMAX 1023
#define DBL_BIAS 1023
#define DBL_WRAP 1536
-#define DBL_INFINITY_EXPONENT (DBL_MAX_EXP+DBL_BIAS+1)
+#define DBL_INFINITY_EXPONENT (DBL_EMAX+DBL_BIAS+1)
#define DBL_THRESHOLD 64
#define DBL_EXP_LENGTH 11
#define DBL_P 53
#define QUAD_BITLENGTH 128
+#define QUAD_EMAX 16383
#define QUAD_BIAS 16383
#define QUAD_WRAP 24576
-#define QUAD_INFINITY_EXPONENT (LDBL_MAX_EXP+QUAD_BIAS+1)
+#define QUAD_INFINITY_EXPONENT (QUAD_EMAX+QUAD_BIAS+1)
#define QUAD_P 113
/* Boolean Values etc. */