public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Jeff Johnston <jjohnstn@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix the documentation comment of checkint Date: Tue, 18 Sep 2018 18:12:00 -0000 [thread overview] Message-ID: <20180918181231.13231.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=877a386d763f5068eafce6ef851002547b462edb commit 877a386d763f5068eafce6ef851002547b462edb Author: Szabolcs Nagy <szabolcs.nagy@arm.com> Date: Tue Sep 18 14:14:53 2018 +0100 Fix the documentation comment of checkint checkint in pow is not supposed to be used with 0, inf or nan inputs. Diff: --- newlib/libm/common/pow.c | 3 ++- newlib/libm/common/sf_pow.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/newlib/libm/common/pow.c b/newlib/libm/common/pow.c index e02817e..c27d035 100644 --- a/newlib/libm/common/pow.c +++ b/newlib/libm/common/pow.c @@ -268,7 +268,8 @@ exp_inline (double x, double xtail, uint32_t sign_bias) return scale + scale * tmp; } -/* Returns 0 if not int, 1 if odd int, 2 if even int. */ +/* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is + the bit representation of a non-zero finite floating-point value. */ static inline int checkint (uint64_t iy) { diff --git a/newlib/libm/common/sf_pow.c b/newlib/libm/common/sf_pow.c index 2aa91c9..fcdab0e 100644 --- a/newlib/libm/common/sf_pow.c +++ b/newlib/libm/common/sf_pow.c @@ -127,7 +127,8 @@ exp2_inline (double_t xd, uint32_t sign_bias) return y; } -/* Returns 0 if not int, 1 if odd int, 2 if even int. */ +/* Returns 0 if not int, 1 if odd int, 2 if even int. The argument is + the bit representation of a non-zero finite floating-point value. */ static inline int checkint (uint32_t iy) {
reply other threads:[~2018-09-18 18:12 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180918181231.13231.qmail@sourceware.org \ --to=jjohnstn@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).