Use pow2 function instead of SQR macro.