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-43-ga9e48ab
- From: siddhesh at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 4 Jan 2013 10:14:13 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.17-43-ga9e48ab
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 a9e48ab40e230c7fe34e4892bec8af4f3f975a20 (commit)
from b78372645917b0ecca880c542ef6027ccd74ba28 (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=a9e48ab40e230c7fe34e4892bec8af4f3f975a20
commit a9e48ab40e230c7fe34e4892bec8af4f3f975a20
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Fri Jan 4 15:42:09 2013 +0530
Clean up comment for MP_NO
diff --git a/ChangeLog b/ChangeLog
index 3309f20..3522579 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2013-01-04 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
+
* sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
declarations.
(denorm): Likewise.
diff --git a/sysdeps/ieee754/dbl-64/mpa.h b/sysdeps/ieee754/dbl-64/mpa.h
index 0126ed7..1fef3c0 100644
--- a/sysdeps/ieee754/dbl-64/mpa.h
+++ b/sysdeps/ieee754/dbl-64/mpa.h
@@ -36,18 +36,32 @@
/************************************************************************/
-typedef struct {/* This structure holds the details of a multi-precision */
- int e; /* floating point number, x: d[0] holds its sign (-1,0 or 1) */
- double d[40]; /* e holds its exponent (...,-2,-1,0,1,2,...) and */
-} mp_no; /* d[1]...d[p] hold its mantissa digits. The value of x is, */
- /* x = d[1]*r**(e-1) + d[2]*r**(e-2) + ... + d[p]*r**(e-p). */
- /* Here r = 2**24, 0 <= d[i] < r and 1 <= p <= 32. */
- /* p is a global variable. A multi-precision number is */
- /* always normalized. Namely, d[1] > 0. An exception is */
- /* a zero which is characterized by d[0] = 0. The terms */
- /* d[p+1], d[p+2], ... of a none zero number have no */
- /* significance and so are the terms e, d[1],d[2],... */
- /* of a zero. */
+/* The mp_no structure holds the details of a multi-precision floating point
+ number.
+
+ - The radix of the number (R) is 2 ^ 24.
+
+ - E: The exponent of the number.
+
+ - D[0]: The sign (-1, 1) or 0 if the value is 0. In the latter case, the
+ values of the remaining members of the structure are ignored.
+
+ - D[1] - D[p]: The mantissa of the number where:
+
+ 0 <= D[i] < R and
+ P is the precision of the number and 1 <= p <= 32
+
+ D[p+1] ... D[39] have no significance.
+
+ - The value of the number is:
+
+ D[1] * R ^ (E - 1) + D[2] * R ^ (E - 2) ... D[p] * R ^ (E - p)
+
+ */
+typedef struct {
+ int e;
+ double d[40];
+} mp_no;
typedef union { int i[2]; double d; } number;
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 2 ++
sysdeps/ieee754/dbl-64/mpa.h | 38 ++++++++++++++++++++++++++------------
2 files changed, 28 insertions(+), 12 deletions(-)
hooks/post-receive
--
GNU C Library master sources