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.16-ports-merge-598-g0155d5b
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 2 Nov 2012 22:11:40 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.16-ports-merge-598-g0155d5b
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 0155d5b26e32b2012d9f1842c3b06324746d3087 (commit)
from b5dcacb4502be39d30efd2f928b9a30c91eeb0d3 (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=0155d5b26e32b2012d9f1842c3b06324746d3087
commit 0155d5b26e32b2012d9f1842c3b06324746d3087
Author: Joseph Myers <joseph@codesourcery.com>
Date: Fri Nov 2 22:11:21 2012 +0000
Make math.h FP_* macros usable in #if (bug 3439).
diff --git a/ChangeLog b/ChangeLog
index 798a816..c84a492 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2012-11-02 Joseph Myers <joseph@codesourcery.com>
+
+ [BZ #3439]
+ * math/math.h (FP_NAN): Define macro to integer constant usable in
+ #if and use that to give value to enum constant.
+ (FP_INFINITE): Likewise.
+ (FP_ZERO): Likewise.
+ (FP_SUBNORMAL): Likewise.
+ (FP_NORMAL): Likewise.
+
2012-11-02 Andreas Schwab <schwab@linux-m68k.org>
* iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
diff --git a/math/math.h b/math/math.h
index bcdd5c9..0b4bc0c 100644
--- a/math/math.h
+++ b/math/math.h
@@ -189,16 +189,21 @@ extern int signgam;
/* All floating-point numbers can be put in one of these categories. */
enum
{
- FP_NAN,
-# define FP_NAN FP_NAN
- FP_INFINITE,
-# define FP_INFINITE FP_INFINITE
- FP_ZERO,
-# define FP_ZERO FP_ZERO
- FP_SUBNORMAL,
-# define FP_SUBNORMAL FP_SUBNORMAL
- FP_NORMAL
-# define FP_NORMAL FP_NORMAL
+ FP_NAN =
+# define FP_NAN 0
+ FP_NAN,
+ FP_INFINITE =
+# define FP_INFINITE 1
+ FP_INFINITE,
+ FP_ZERO =
+# define FP_ZERO 2
+ FP_ZERO,
+ FP_SUBNORMAL =
+# define FP_SUBNORMAL 3
+ FP_SUBNORMAL,
+ FP_NORMAL =
+# define FP_NORMAL 4
+ FP_NORMAL
};
/* Return number of classification appropriate for X. */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 10 ++++++++++
math/math.h | 25 +++++++++++++++----------
2 files changed, 25 insertions(+), 10 deletions(-)
hooks/post-receive
--
GNU C Library master sources