CPU-specific files should not include templates or inlines
commited43620c007e7fa8eb3a4ea49a90d2171b8de594
authorLuboš Luňák <l.lunak@collabora.com>
Wed, 27 Oct 2021 08:09:31 +0000 (27 10:09 +0200)
committerLuboš Luňák <l.lunak@collabora.com>
Wed, 27 Oct 2021 16:36:59 +0000 (27 18:36 +0200)
tree728c45ebf91b3bfc6d4d7f8cb7318906ff23d2cd
parent7ba33498303b5c9761d14feb03074d8392e15b2e
CPU-specific files should not include templates or inlines

Otherwise the possible copy emitted compiled with CPU-specific
instructions might be chosen as the copy to keep and would be
used by generic code. See history for the Calc Kahan code.

Change-Id: Ifc1bbd8d9720d9effe05b8ff8ee5e804363939df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124257
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
include/tools/cpuid.hxx
tools/qa/cppunit/test_cpu_runtime_detection_AVX2_check.cxx
tools/qa/cppunit/test_cpu_runtime_detection_SSE2_check.cxx
tools/qa/cppunit/test_cpu_runtime_detection_SSSE3_check.cxx