From 060a72601cdea813d681cd591a3ac7905b9b812f Mon Sep 17 00:00:00 2001 From: kleink Date: Mon, 27 Oct 2003 10:13:48 +0000 Subject: [PATCH] For convenient use in libc, add unions of the C floating types and their corresponding structure definitions. --- sys/arch/arm/include/ieee.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/sys/arch/arm/include/ieee.h b/sys/arch/arm/include/ieee.h index 716fc93d6930..fb9803d7174f 100644 --- a/sys/arch/arm/include/ieee.h +++ b/sys/arch/arm/include/ieee.h @@ -1,4 +1,4 @@ -/* $NetBSD: ieee.h,v 1.5 2003/10/26 15:57:54 kleink Exp $ */ +/* $NetBSD: ieee.h,v 1.6 2003/10/27 10:13:48 kleink Exp $ */ /* * Copyright (c) 1992, 1993 @@ -140,3 +140,16 @@ struct ieee_double { */ #define SNG_EXP_BIAS 127 #define DBL_EXP_BIAS 1023 + +/* + * Convenience data structures. + */ +union ieee_single_u { + float sngu_f; + struct ieee_single sngu_sng; +}; + +union ieee_double_u { + double dblu_d; + struct ieee_double dblu_dbl; +};