Turn Twiddle factor into macro