X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ftrigl.c;h=45a7a8b23b72fa7c880db45914946f36cdc34685;hb=25b6b5120113989e0b91de9d0b75d3d625bbc753;hp=fbd4815d4c53a69b682b5ae267bb01b248a324f2;hpb=73e329f11142c2804e42825e1590041d68dbb6e9;p=gnulib.git diff --git a/lib/trigl.c b/lib/trigl.c index fbd4815d4..45a7a8b23 100644 --- a/lib/trigl.c +++ b/lib/trigl.c @@ -1,5 +1,5 @@ /* Quad-precision floating point argument reduction. - Copyright (C) 1999, 2007, 2009-2010 Free Software Foundation, Inc. + Copyright (C) 1999, 2007, 2009-2012 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));