inducer / loopy

A code generator for array-based code on CPUs and GPUs
http://mathema.tician.de/software/loopy
MIT License
580 stars 70 forks source link

Simplify float, int power function #814

Closed nchristensen closed 11 months ago

nchristensen commented 11 months ago

To my eye it appears we can move the x*x outside of the if-else block and eliminate the else branch.

inducer commented 11 months ago

Thx!