PATCH] Fix comment about rounding in sin/cos
Commit Message
Hi,
As reported in https://www.sourceware.org/ml/libc-alpha/2020-01/msg00629.html
the sin/cos functions don't support correct rounding, but still have an old comment
claiming so. Hence:
Remove a comment claiming that sin/cos round correctly.
--
Comments
On 30/01/20 6:23 pm, Wilco Dijkstra wrote:
> Hi,
>
> As reported in https://www.sourceware.org/ml/libc-alpha/2020-01/msg00629.html
> the sin/cos functions don't support correct rounding, but still have an old comment
> claiming so. Hence:
>
> Remove a comment claiming that sin/cos round correctly.
OK for master if you commit it by today, else on Monday after 2.32 release.
Siddhesh
@@ -192,8 +192,8 @@ do_sincos (double a, double da, int4 n)
/*******************************************************************/
-/* An ultimate sin routine. Given an IEEE double machine number x */
-/* it computes the correctly rounded (to nearest) value of sin(x) */
+/* An ultimate sin routine. Given an IEEE double machine number x */
+/* it computes the rounded value of sin(x). */
/*******************************************************************/
#ifndef IN_SINCOS
double
@@ -256,8 +256,8 @@ __sin (double x)
/*******************************************************************/
-/* An ultimate cos routine. Given an IEEE double machine number x */
-/* it computes the correctly rounded (to nearest) value of cos(x) */
+/* An ultimate cos routine. Given an IEEE double machine number x */
+/* it computes the rounded value of cos(x). */
/*******************************************************************/
double