pow calculation in kernel