This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
RE: Sine and Cosine Accuracy
- From: "Menezes, Evandro" <evandro dot menezes at amd dot com>
- To: "Uros Bizjak" <uros at kss-loka dot si>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 26 May 2005 16:33:00 -0500
- Subject: RE: Sine and Cosine Accuracy
Uros,
> However, the argument to fsin can be reduced to an
> acceptable range by using fmod builtin. Internally, this
> builtin is implemented as a very tight loop that check for
> insufficient reduction, and could reduce whatever finite
> value one wishes.
Keep in mind that x87 transcendentals are not the most accurate around, but all x86 processors from any manufacturer produce roughly the same results for any argument as the 8087 did way back when, even if the result is hundreds of ulps off...
--
_______________________________________________________
Evandro Menezes AMD Austin, TX