CPU intrinsics detection (SSE, AVX)

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 9 July 2019 00:46 EDT

Adds CPU intrinsics detection in configure pass for compile time detection and "cpuid" runtime detection of which CPU instruction sets are available on the user device.

Change-Id: I0ee4d0b22a7c51f72796d43e7383a31d03b437ad Reviewed-on: https://gerrit.libreoffice.org/75175

f43f9b996037 CPU intrinsics detection (SSE, AVX)
config_host.mk.in | 1 +
configure.ac | 102 ++++++++++++++++++++++++++++
include/tools/cpuid.hxx | 71 +++++++++++++++++---
include/tools/simd.hxx | 30 +++++++++
include/tools/simdsupport.hxx | 62 +++++++++++++++++
sc/source/core/data/formulacell.cxx | 2 +-
sc/source/core/inc/arraysumfunctor.hxx | 15 ++---
tools/CppunitTest_tools_test.mk | 4 ++
tools/qa/cppunit/test_cpuid.cxx | 74 ++++++++++++++++++++
tools/source/misc/cpuid.cxx | 119 ++++++++++++++++++++++++++-------
10 files changed, 434 insertions(+), 46 deletions(-)

Upstream: cgit.freedesktop.org


  • Share