[PATCH 1/2] Fix the documentation comments for log_inline in pow

Szabolcs Nagy <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
0001-Fix-the-documentation-comments-for-log_inline-in-pow.patch (text/x-patch, 1.1 KB)
From 3d8215160f71affa1a5a0977cac79e0aba33e868 Mon Sep 17 00:00:00 2001
From: Szabolcs Nagy <[email protected]>
Date: Tue, 10 Jul 2018 17:13:27 +0100
Subject: [PATCH 1/2] Fix the documentation comments for log_inline in pow

There was a typo and the arguments were not explained clearly.
---
 newlib/libm/common/pow.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/newlib/libm/common/pow.c b/newlib/libm/common/pow.c
index a5504e5e9..e02817ec2 100644
--- a/newlib/libm/common/pow.c
+++ b/newlib/libm/common/pow.c
@@ -53,9 +53,9 @@ top12 (double x)
   return asuint64 (x) >> 52;
 }
 
-/* Compute y+tail = log(x) where the rounded result is y and tail has about
-   additional 15 bits precision.  The bit representation of x if in ix, but
-   normalized in the subnormal range using sign bit too for the exponent.  */
+/* Compute y+TAIL = log(x) where the rounded result is y and TAIL has about
+   additional 15 bits precision.  IX is the bit representation of x, but
+   normalized in the subnormal range using the sign bit for the exponent.  */
 static inline double_t
 log_inline (uint64_t ix, double_t *tail)
 {
-- 
2.14.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.