This is the mail archive of the java@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] | |
Thats what I think. I've heard that Sun's VM implements Math.* calls by calling the corresponding StrictMath.* versions, even though this is not required by the spec, which presumably accounts for their poor showing here. IBMs VM apparantly does something better.Bryce> I think the main problem here, judging by the huge difference Bryce> shown by --fast-math, is that we implement the Math.* calls Bryce> inefficiently. In libjava we use the fdlibm library to Bryce> implement them, which is written in pure C and contains no Bryce> cpu-specific asm optimizations.
For non-strictfp code (like java.lang.Math), it seems to me that we
could avoid fdlibm and just use the libc functions. Is that not so?
I wonder if we could remove fdlibm entirely now that StrictMath is
pure java.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |