Skip to content

Move GSF KL distance to using vec.h Minor additions to vec.h

This is the reason for / follow up to !35341 (merged)

So let me mention @ssnyder and @amorley

KLGaussianMixtureReduction changes

  • The major change is to move the code in KLGaussianMixtureReduction.cxx from using directly x86-64 intrinsics to compiler (gcc/clang) vector types (e.g look https://clang.llvm.org/docs/LanguageExtensions.html#vectors-and-extended-vectors) as provided by the wrappers in vec.h e.g the vec type and the relevant methods.

  • It seems that the code becomes indeed a bit more readable if we avoid the _mm . But this is also for the reviewers to judge.

  • My benchmarks so far indicate same performance (as should be)

vec changes

Edited by Christos Anastopoulos

Merge request reports