summaryrefslogtreecommitdiff
path: root/random/rndhw.c
diff options
context:
space:
mode:
authorJussi Kivilinna <jussi.kivilinna@iki.fi>2021-01-21 22:00:51 +0200
committerJussi Kivilinna <jussi.kivilinna@iki.fi>2021-01-26 19:41:07 +0200
commit3b34bd6e178614d6021ee7d1140646f7c8ed7519 (patch)
tree8b62d769a4a1249970913dff3e4061d79a11839c /random/rndhw.c
parent1b74f633bd3e358fb07a856a70597019980651d2 (diff)
downloadlibgcrypt-3b34bd6e178614d6021ee7d1140646f7c8ed7519.tar.gz
Add configure option to force enable 'soft' HW feature bits
* configure.ac (force_soft_hwfeatures) (ENABLE_FORCE_SOFT_HWFEATURES): New. * src/hwf-x86.c (detect_x86_gnuc): Enable HWF_INTEL_FAST_SHLD and HWF_INTEL_FAST_VPGATHER if ENABLE_FORCE_SOFT_HWFEATURES enabled. -- Patch allows enabling HW features, that are fast only select CPU models, on all CPUs. For example, SHLD instruction is fast on only select Intel processors and should not be used on others. This configuration option allows enabling these 'soft' HW features for testing purposes on all CPUs. Current 'soft' HW features are: - "intel-fast-shld": supported by all x86 (but very slow on most) - "intel-fast-vpgather": supported by all x86 with AVX2 (but slow on most) Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>
Diffstat (limited to 'random/rndhw.c')
0 files changed, 0 insertions, 0 deletions