This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.17-18-g18ea052
- From: siddhesh at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 31 Dec 2012 10:35:52 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-18-g18ea052
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 18ea052c3e3fa91cf8a80e20c48023fd0ba5fab8 (commit)
from 9c89fca6e0bd8ecf72c793965b8bdf51b883a64d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=18ea052c3e3fa91cf8a80e20c48023fd0ba5fab8
commit 18ea052c3e3fa91cf8a80e20c48023fd0ba5fab8
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Mon Dec 31 16:05:13 2012 +0530
Favour normal numbers
diff --git a/ChangeLog b/ChangeLog
index 0a71ba7..482ca47 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-12-31 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
+ numbers.
+
2012-12-30 Mike Frysinger <vapier@gentoo.org>
* math/bits/mathcalls.h (modf): Use __nonnull.
diff --git a/sysdeps/ieee754/dbl-64/mpa.c b/sysdeps/ieee754/dbl-64/mpa.c
index cf4f6f7..9ab0a48 100644
--- a/sysdeps/ieee754/dbl-64/mpa.c
+++ b/sysdeps/ieee754/dbl-64/mpa.c
@@ -1,7 +1,7 @@
/*
* IBM Accurate Mathematical Library
* written by International Business Machines Corp.
- * Copyright (C) 2001, 2011 Free Software Foundation
+ * Copyright (C) 2001-2012 Free Software Foundation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
@@ -247,9 +247,10 @@ void __mp_dbl(const mp_no *x, double *y, int p) {
if (X[0] == ZERO) {*y = ZERO; return; }
- if (EX> -42) norm(x,y,p);
- else if (EX==-42 && X[1]>=TWO10) norm(x,y,p);
- else denorm(x,y,p);
+ if (__glibc_likely (EX > -42 || (EX == -42 && X[1] >= TWO10)))
+ norm(x,y,p);
+ else
+ denorm(x,y,p);
}
#endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/ieee754/dbl-64/mpa.c | 9 +++++----
2 files changed, 10 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU C Library master sources