X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftrigl.c;h=418ded96295e9f8b19ec29dba77c146727f69e33;hb=23eecb48e39afd0d267d64d40ba6bf97aa865e13;hp=0ed0da63380ea1409c509f4e8200e431f8cd58eb;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/lib/trigl.c b/lib/trigl.c index 0ed0da633..418ded962 100644 --- a/lib/trigl.c +++ b/lib/trigl.c @@ -1,5 +1,5 @@ /* Quad-precision floating point argument reduction. - Copyright (C) 1999, 2007, 2009-2011 Free Software Foundation, Inc. + Copyright (C) 1999, 2007, 2009-2013 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Jakub Jelinek @@ -24,6 +24,9 @@ #include #include +/* Code based on glibc/sysdeps/ieee754/ldbl-128/e_rem_pio2l.c + and glibc/sysdeps/ieee754/dbl-64/k_rem_pio2.c. */ + /* Table of constants for 2/pi, 5628 hexadecimal digits of 2/pi */ static const int two_over_pi[] = { 0xa2f983, 0x6e4e44, 0x1529fc, 0x2757d1, 0xf534dd, 0xc0db62, @@ -456,7 +459,7 @@ kernel_rem_pio2 (double *x, double *y, int e0, int nx, int prec, jz = jk; recompute: - /* distill q[] into iq[] reversingly */ + /* distill q[] into iq[] in reverse order */ for (i = 0, j = jz, z = q[jz]; j > 0; i++, j--) { fw = (double) ((int) (twon24 * z));