This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

[JAVA] Implement more java.lang.Math builtins.


Roger Sayle writes:
 > 
 > The following patch tweaks the gcj front-end to use GCC's built-ins
 > for the mathematical functions atan, atan2, exp, log, pow and tan
 > in java.lang.Math builtins.

I'm a bit nervous about this.  The JLS is quite specific about these
functions and how they are to be computed, whereas (as far as I am
aware) gcc's builtins are not quite so well-defined.  The efficiency
argument is compelling, however.

Perhaps we could enable this with a switch; perhaps it doesn't matter.
Comments welcome...

Andrew.


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