admin管理员组

文章数量:1191161

Java 8 floating-point calculations for the Math.pow method show inconsistent results between x86 and ARM platforms. Due to historical reasons, calculations were previously done on x86 architecture, and i want to extend to ARM architecture. Is there a way to simulate the x86 architecture's Math.pow method on ARM? I know Rosetta 2 on Apple M-series chips can emulate x86 instructions, which helps simulate x86 behavior on ARM architecture.

some test data:

System.out.println(Math.pow(1.0061363892207218, 0.0005));
System.out.println(Math.pow(1.0000046943914231, 2000));

本文标签: javaemulate x87 fpu pow operations based on armStack Overflow