The code is implementing the <a href="https://en.wikipedia.org/wiki/Kahan_summation_algorithm" rel="nofollow">https://en.wikipedia.org/wiki/Kahan_summation_algorithm</a><p>Seems like it could be ported to orc to hide platform dependence, but it does not yet(?) emit AVX code: <a href="https://cgit.freedesktop.org/gstreamer/orc/" rel="nofollow">https://cgit.freedesktop.org/gstreamer/orc/</a><p>Yeah, AVX512 does not necessarily give faster code. Have seen interesting benchmark results running the tests of <a href="https://github.com/gnuradio/volk" rel="nofollow">https://github.com/gnuradio/volk</a>