SciProgCentre/kmath

ASM: Do operation optimizations in specialized builder

CommanderTvis opened this issue · 0 comments

  1. x^2 -> x*x
  2. x^3 -> x*x*x
  3. x^(1/3) -> java.lang.Math.cbrt(x)
  4. x^(1/2) -> java.lang.Math.sqrt(x)

In all of these cases, invoking Math.pow is more expensive.