Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/quad Appease lint and don't use C99 features.
details: https://anonhg.NetBSD.org/src/rev/325551cc6ba2
branches: trunk
changeset: 767097:325551cc6ba2
user: matt <matt%NetBSD.org@localhost>
date: Sat Jul 09 03:16:40 2011 +0000
description:
Appease lint and don't use C99 features.
diffstat:
lib/libc/quad/floatunditf_ieee754.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (39 lines):
diff -r 2733bec7aeb8 -r 325551cc6ba2 lib/libc/quad/floatunditf_ieee754.c
--- a/lib/libc/quad/floatunditf_ieee754.c Sat Jul 09 02:36:01 2011 +0000
+++ b/lib/libc/quad/floatunditf_ieee754.c Sat Jul 09 03:16:40 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: floatunditf_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $ */
+/* $NetBSD: floatunditf_ieee754.c,v 1.2 2011/07/09 03:16:40 matt Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)floatunsdidf.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: floatunditf_ieee754.c,v 1.1 2011/07/09 02:30:27 matt Exp $");
+__RCSID("$NetBSD: floatunditf_ieee754.c,v 1.2 2011/07/09 03:16:40 matt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -65,16 +65,16 @@
return (ld);
#else
union ieee_ext_u extu;
+ quad_t tmp = x; /* must be signed */
+ size_t width = 64;
+ size_t bit = 0;
+ quad_t mask = ~(quad_t)0;
if (x == 0)
return 0.0L;
if (x == 1)
return 1.0L;
- quad_t tmp = x; /* must be signed */
- size_t width = 64;
- size_t bit = 0;
- quad_t mask = ~(quad_t)0;
while (mask != 0 && (tmp >= 0)) {
width >>= 1;
mask <<= width;
Home |
Main Index |
Thread Index |
Old Index