summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-11-10 20:29:37 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-11-10 20:29:37 +0000
commit2df4fc488daaede39e99b6d87faee2967767dbbb (patch)
treeda1c88dd8f43faa741787891dadff37fa10bf055
parenta88f765ba5dd55e80d39d03a3b74831b94b509ba (diff)
Correct order of the bitfields of float and double. Fixes ldexp() (and
some more), which fixeds drand48(), which fixes perl build. ok miod@ drahn@ deraadt@
-rw-r--r--sys/arch/sh/include/ieee.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/sh/include/ieee.h b/sys/arch/sh/include/ieee.h
index 7ee46d82db4..7646f85edfc 100644
--- a/sys/arch/sh/include/ieee.h
+++ b/sys/arch/sh/include/ieee.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee.h,v 1.1 2006/10/06 21:02:55 miod Exp $ */
+/* $OpenBSD: ieee.h,v 1.2 2006/11/10 20:29:36 otto Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -84,16 +84,16 @@
#define EXT_FRACBITS 112
struct ieee_single {
- u_int sng_sign:1;
- u_int sng_exp:8;
u_int sng_frac:23;
+ u_int sng_exp:8;
+ u_int sng_sign:1;
};
struct ieee_double {
- u_int dbl_sign:1;
- u_int dbl_exp:11;
- u_int dbl_frach:20;
u_int dbl_fracl;
+ u_int dbl_frach:20;
+ u_int dbl_exp:11;
+ u_int dbl_sign:1;
};
struct ieee_ext {