This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.25-553-g5070551


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  5070551cbf0ba8f69e15e1a19f8989b812b6a651 (commit)
       via  5ae22669437cdee21b254b7eb59e16e394ddfd6d (commit)
      from  95b38bbb03b3531336ae9a9346bb5b01a1836647 (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://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5070551cbf0ba8f69e15e1a19f8989b812b6a651

commit 5070551cbf0ba8f69e15e1a19f8989b812b6a651
Author: Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Date:   Tue Jun 20 15:00:16 2017 -0300

    Describe remainder as primary and drem as alternative in the manual
    
    In preparation for the documentation of _FloatN and _FloatNx variants of
    the remainder function, this patch changes the descriptions of remainder
    and drem, so that remainder is described as primary and drem as an
    alternative name for the same functionality.
    
    	* manual/arith.texi (Remainder Functions): Describe remainder as
    	primary and drem as an alternative name.  Change the comment on
    	remainder to ISO, since it is defined in ISO C99.

diff --git a/ChangeLog b/ChangeLog
index d01eda7..a9a99f0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2017-06-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
 
+	* manual/arith.texi (Remainder Functions): Describe remainder as
+	primary and drem as an alternative name.  Change the comment on
+	remainder to ISO, since it is defined in ISO C99.
+
+2017-06-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
+
 	* stdlib/tst-strtod.h (MMFUNC): New macro to provide an addition
 	macro expansion.
 	(GEN_TEST_STRTOD_FOREACH): Use MMFUNC for _Float128.
diff --git a/manual/arith.texi b/manual/arith.texi
index dd6020c..e403cb5 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -1591,31 +1591,31 @@ less than the magnitude of the @var{denominator}.
 If @var{denominator} is zero, @code{fmod} signals a domain error.
 @end deftypefun
 
-@deftypefun double drem (double @var{numerator}, double @var{denominator})
-@deftypefunx float dremf (float @var{numerator}, float @var{denominator})
-@deftypefunx {long double} dreml (long double @var{numerator}, long double @var{denominator})
-@standards{BSD, math.h}
+@deftypefun double remainder (double @var{numerator}, double @var{denominator})
+@deftypefunx float remainderf (float @var{numerator}, float @var{denominator})
+@deftypefunx {long double} remainderl (long double @var{numerator}, long double @var{denominator})
+@standards{ISO, math.h}
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
 These functions are like @code{fmod} except that they round the
 internal quotient @var{n} to the nearest integer instead of towards zero
-to an integer.  For example, @code{drem (6.5, 2.3)} returns @code{-0.4},
-which is @code{6.5} minus @code{6.9}.
+to an integer.  For example, @code{remainder (6.5, 2.3)} returns
+@code{-0.4}, which is @code{6.5} minus @code{6.9}.
 
 The absolute value of the result is less than or equal to half the
 absolute value of the @var{denominator}.  The difference between
-@code{fmod (@var{numerator}, @var{denominator})} and @code{drem
+@code{fmod (@var{numerator}, @var{denominator})} and @code{remainder
 (@var{numerator}, @var{denominator})} is always either
 @var{denominator}, minus @var{denominator}, or zero.
 
-If @var{denominator} is zero, @code{drem} signals a domain error.
+If @var{denominator} is zero, @code{remainder} signals a domain error.
 @end deftypefun
 
-@deftypefun double remainder (double @var{numerator}, double @var{denominator})
-@deftypefunx float remainderf (float @var{numerator}, float @var{denominator})
-@deftypefunx {long double} remainderl (long double @var{numerator}, long double @var{denominator})
+@deftypefun double drem (double @var{numerator}, double @var{denominator})
+@deftypefunx float dremf (float @var{numerator}, float @var{denominator})
+@deftypefunx {long double} dreml (long double @var{numerator}, long double @var{denominator})
 @standards{BSD, math.h}
 @safety{@prelim{}@mtsafe{}@assafe{}@acsafe{}}
-This function is another name for @code{drem}.
+This function is another name for @code{remainder}.
 @end deftypefun
 
 @node FP Bit Twiddling

http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=5ae22669437cdee21b254b7eb59e16e394ddfd6d

commit 5ae22669437cdee21b254b7eb59e16e394ddfd6d
Author: Gabriel F. T. Gomes <gftg@linux.vnet.ibm.com>
Date:   Wed Jun 21 09:20:39 2017 -0300

    Provide an additional macro expansion for F128 in stdlib/tst-strtod.h
    
    The macro F128 in stdlib/tst-strtod.h is defined to provide the literal
    suffix for _Float128 constants.  It uses the macro __f128 (), which is
    defined in bits/floatn.h to provide the correct literal suffix depending on
    what is provided by the compiler.
    
    However, F128 was not being expanded and only worked correctly, when
    compiling with GCC 7 (or greater), since F128 is the literal suffix itself.
    This patch adds an additional macro expansion so that the macro F128
    expands to the correct literal suffix on older compilers.
    
    	* stdlib/tst-strtod.h (MMFUNC): New macro to provide an addition
    	macro expansion.
    	(GEN_TEST_STRTOD_FOREACH): Use MMFUNC for _Float128.

diff --git a/ChangeLog b/ChangeLog
index f282529..d01eda7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-06-22  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
+
+	* stdlib/tst-strtod.h (MMFUNC): New macro to provide an addition
+	macro expansion.
+	(GEN_TEST_STRTOD_FOREACH): Use MMFUNC for _Float128.
+
 2017-06-22  Mike FABIAN  <mfabian@redhat.com>
 
 	[BZ #21533]
diff --git a/stdlib/tst-strtod.h b/stdlib/tst-strtod.h
index e23ac3f..bc82ee0 100644
--- a/stdlib/tst-strtod.h
+++ b/stdlib/tst-strtod.h
@@ -33,12 +33,16 @@
 # define IF_FLOAT128(x)
 #endif
 
+/* Provide an extra parameter expansion for mfunc.  */
+#define MMFUNC(mmfunc, ...) mmfunc (__VA_ARGS__)
+
 /* Splat n variants of the same test for the various strtod functions.  */
 #define GEN_TEST_STRTOD_FOREACH(mfunc, ...)				      \
   mfunc (  f,       float, strfromf, f, f, ##__VA_ARGS__)		      \
   mfunc (  d,      double, strfromd,  ,  , ##__VA_ARGS__)		      \
   mfunc ( ld, long double, strfroml, L, l, ##__VA_ARGS__)		      \
-  IF_FLOAT128 (mfunc (f128, _Float128, strfromf128, F128, f128, ##__VA_ARGS__))
+  IF_FLOAT128 (MMFUNC							      \
+   (mfunc, f128, _Float128, strfromf128, F128, f128, ##__VA_ARGS__))
 /* The arguments to the generated macros are:
    FSUF - Function suffix
    FTYPE - float type

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog           |   12 ++++++++++++
 manual/arith.texi   |   24 ++++++++++++------------
 stdlib/tst-strtod.h |    6 +++++-
 3 files changed, 29 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]