如果您阅读了令人难以置信的难以找到的Java原生sqrt方法的顶部,该方法位于jdk1.6 \ src \ jdk \ src \ share \ native \ java \ lang \ fdlibm \ src \ e_sqrt .c你会发现这个:
/* __ieee754_sqrt(x)
* Return correctly rounded sqrt.
* ------------------------------------------
* | Use the hardware sqrt if you have one |
* ------------------------------------------
.... etc algorithm continues
如何判断JVM(例如最近的Oracle 7/8 jdks)是否在fdlibm中使用硬件sqrt或软件sqrt?