JuliaMath / openlibm

High quality system independent, portable, open source libm implementation
https://openlibm.org
Other
507 stars 139 forks source link

openlibm, fdlibm, Java openjdk? #272

Closed PowerUser1234 closed 1 month ago

PowerUser1234 commented 1 year ago

-If I want to, can I create a new Java OpenJDK maths class, with a class signature the same as java.lang.StrictMath, and build an openjdk language useable calculator class parallel to StrictMath that calls upon openlibm instead of fdlibm, resulting in no openjdk floating point errors, by rebuilding the Java OpenJDK, say, version 19, using openlibm instead of fdlibm?

-Could this be done by dropping in openlibm, and changing the name references to openlibm instead of fdlibm, directly, requiring no other changes, or some changes?

ViralBShah commented 8 months ago

In theory, that should work (not knowing much about java myself).