Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Allow runtime switch between the JDK and CM implementations of the methods defined in the Math class.
I propose to create a JdkMath class that will store references to either JDK's methods in Math or CM's methods in AccurateMath, based on a system property.
Thus, all CM codes will be updated to call the methods declared in JdkMath.