Move convolution code to core_convolve