java.lang.Math.log replaced by intrinsic call, why not java.lang.Math.exp()?

后端 未结 1 992
遇见更好的自我
遇见更好的自我 2020-12-21 19:02

I\'m reasking a question that had too little attention I think:

Why does this simple code (simply a call to Math.log()):

Double thisdoub         


        
相关标签:
1条回答
  • 2020-12-21 19:50

    I would assume that the code in the Math class is only a fallback code, used by those architectures where the method invocation isn't substituted by a call to some native floating point operation instead. So the method doesn't actually get called in your case. I must confess I don't have evidence tu support this assumption, though.

    0 讨论(0)
提交回复
热议问题