ASM: Do operation optimizations in specialized builder
CommanderTvis opened this issue · 0 comments
CommanderTvis commented
- x^2 -> x*x
- x^3 -> x*x*x
- x^(1/3) -> java.lang.Math.cbrt(x)
- x^(1/2) -> java.lang.Math.sqrt(x)
In all of these cases, invoking Math.pow
is more expensive.