This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [JAVA] Implement more java.lang.Math builtins.
- From: Roger Sayle <roger at eyesopen dot com>
- To: Andrew Haley <aph at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, <java-patches at gcc dot gnu dot org>
- Date: Thu, 29 May 2003 08:10:08 -0600 (MDT)
- Subject: Re: [JAVA] Implement more java.lang.Math builtins.
On Thu, 29 May 2003, Andrew Haley wrote:
> Yes, but are the math functions themselves required to be within 1 ulp
> of the correctly rounded result? Are they required to be monotonic?
Yes and yes. Without additional command-line options GCC's mathematical
builtins are currently required to be monotonic and within 1 ulp of the
correctly rounded result, which are also the requirements of the standard
C library. Transformations or evaluations of mathematical built-ins
within GCC at compile-time are required to be monotonic and within 0.5 ulp
of the correctly rounded result. This requirement is so that GCC will
not degrade calculations if used in combination with a "perfect" system
library, that exceeds the C, C++ and Java language specifications' 1 ulp.
Roger
--