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
版权声明:本文标题:java - emulate x87 fpu pow operations based on arm - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738412642a2085410.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论