Libvisual/libvisual

Throw out SIMD versions of memcpy and memset?

Closed this issue · 0 comments

lv_mem.c has a bunch of x86/x64 SIMD versions of memset and memcpy. I believe glibc already does so when it's able to and is far more portable.

On top of that, I've noticed playing a bit on Godbolt that GCC even recognises a naive C/C++ implementation of memcpy and reduces it to a call to memcpy when restrict is used! So it's time to re-evaluate and hopefully ditch all the custom code.