Sine and Cosine Accuracy

Kai Henningsen kaih@khms.westfalen.de
Sun May 29 03:36:00 GMT 2005


rth@redhat.com (Richard Henderson)  wrote on 26.05.05 in <20050526154754.GA10785@redhat.com>:

> On Thu, May 26, 2005 at 10:34:14AM -0400, Scott Robert Ladd wrote:
> >     static const double range = PI; // * 2.0;
> >     static const double incr  = PI / 100.0;
>
> The trig insns fail with large numbers; an argument
> reduction loop is required with their use.

Are you claiming that [-PI ... PI] counts as "large numbers"?

MfG Kai



More information about the Gcc mailing list