From 2df4fc488daaede39e99b6d87faee2967767dbbb Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 10 Nov 2006 20:29:37 +0000 Subject: 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@ --- sys/arch/sh/include/ieee.h | 12 ++++++------ 1 file 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 { -- cgit v1.2.3