This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]