Refactor spiir_kernel.cu
filter_s
and filter_d
are essentially the same function, but with one using floats and the other doubles. It's difficult to avoid code duplication when using slightly different types in C, but we should extract as much as we can to common functions.
It's twice now caused very similar changes to need to be duplicated across the two functions.