Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys Add sngu_* and dblu_* access macros.



details:   https://anonhg.NetBSD.org/src/rev/b41efddc838f
branches:  trunk
changeset: 780828:b41efddc838f
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Aug 08 16:56:53 2012 +0000

description:
Add sngu_* and dblu_* access macros.
XXX sng* and ext* should be renamed to flt* and ldbl*

diffstat:

 sys/sys/ieee754.h |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 425ef8f23e6b -r b41efddc838f sys/sys/ieee754.h
--- a/sys/sys/ieee754.h Wed Aug 08 16:29:50 2012 +0000
+++ b/sys/sys/ieee754.h Wed Aug 08 16:56:53 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ieee754.h,v 1.7 2007/02/02 23:08:22 christos Exp $     */
+/*     $NetBSD: ieee754.h,v 1.8 2012/08/08 16:56:53 matt Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -145,8 +145,17 @@
        struct ieee_single      sngu_sng;
 };
 
+#define        sngu_sign       sngu_sng.sng_sign
+#define        sngu_exp        sngu_sng.sng_exp
+#define        sngu_frac       sngu_sng.sng_frac
+
 union ieee_double_u {
        double                  dblu_d;
        struct ieee_double      dblu_dbl;
 };
+
+#define        dblu_sign       dblu_dbl.dbl_sign
+#define        dblu_exp        dblu_dbl.dbl_exp
+#define        dblu_frach      dblu_dbl.dbl_frach
+#define        dblu_fracl      dblu_dbl.dbl_fracl
 #endif /* _SYS_IEEE754_H_ */



Home | Main Index | Thread Index | Old Index