gnuradio / volk

The Vector Optimized Library of Kernels
http://libvolk.org
GNU Lesser General Public License v3.0
557 stars 202 forks source link

kernel: Refactor 32f_x2_subtract_32f kernel #691

Closed jdemel closed 1 year ago

jdemel commented 1 year ago

This kernel had a lot of superfluous lines that are removed now. This should make it easier to understand the code. Also, the generic kernel moved to the top. It serves as a reference for anyone looking into the source code.

I benchmarked the code repeatedly but couldn't measure any changes.

argilo commented 1 year ago

The code looks good, and I double checked this in the ASAN configuration with various vector lengths and vlen_twiddle = 0.