Module Name: src
Committed By: christos
Date: Sun Mar 13 19:44:58 UTC 2016
Modified Files:
src/lib/libc/gdtoa: ldtoa.c
Log Message:
PR/50937: Henning Petersen: Fix subnormal printf for long double x86. From
FreeBSD PR 85080.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/gdtoa/ldtoa.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gdtoa/ldtoa.c
diff -u src/lib/libc/gdtoa/ldtoa.c:1.4 src/lib/libc/gdtoa/ldtoa.c:1.5
--- src/lib/libc/gdtoa/ldtoa.c:1.4 Fri Feb 23 12:45:59 2007
+++ src/lib/libc/gdtoa/ldtoa.c Sun Mar 13 15:44:58 2016
@@ -1,4 +1,4 @@
-/* $NetBSD: ldtoa.c,v 1.4 2007/02/23 17:45:59 christos Exp $ */
+/* $NetBSD: ldtoa.c,v 1.5 2016/03/13 19:44:58 christos Exp $ */
/*-
* Copyright (c) 2003 David Schultz <[email protected]>
@@ -30,7 +30,7 @@
#if 0
__FBSDID("$FreeBSD: src/lib/libc/gdtoa/_ldtoa.c,v 1.2 2004/01/18 07:53:49 das Exp $");
#else
-__RCSID("$NetBSD: ldtoa.c,v 1.4 2007/02/23 17:45:59 christos Exp $");
+__RCSID("$NetBSD: ldtoa.c,v 1.5 2016/03/13 19:44:58 christos Exp $");
#endif
#include <float.h>
@@ -87,9 +87,7 @@ ldtoa(long double *ld, int mode, int ndi
break;
case FP_SUBNORMAL:
kind = STRTOG_Denormal;
-#ifdef LDBL_IMPLICIT_NBIT
be++;
-#endif
break;
case FP_INFINITE:
kind = STRTOG_Infinite;