-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.def.x86_64.inc
56 lines (52 loc) · 1.92 KB
/
config.def.x86_64.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# hebimath - arbitrary precision arithmetic library
# See LICENSE file for copyright and license details
# Configure the hardware capabilities of your x86 or x86-64 CPU below.
# Set each hardware capability (hwcap) symbol to 1 to enable it, or 0
# to disable it. Consult your processor documentation or use a utility
# such as lscpu(1) to determine what features your processor supports.
#
# With dynamic multi-versioning (the default), the hardware capability
# symbols below control what function versions are built into the
# library and are available for selection at runtime.
#
# With static multi-versioning, the symbols control the feature set
# available for the target hardware, and only the best function
# matching the enabled features is linked in. All other functions are
# stripped out of the library.
.equ HWCAP_X86_64, 1
.equ HWCAP_SSE, 1
.equ HWCAP_SSE2, 1
.equ HWCAP_SSE3, 1
.equ HWCAP_SSE41, 1
.equ HWCAP_SSE42, 1
.equ HWCAP_AESNI, 1
.equ HWCAP_CLMUL, 1
.equ HWCAP_POPCNT, 1
.equ HWCAP_LZCNT, 1
.equ HWCAP_F16C, 1
.equ HWCAP_FMA, 1
.equ HWCAP_AVX, 1
.equ HWCAP_AVX2, 1
.equ HWCAP_BMI1, 1
.equ HWCAP_BMI2, 1
.equ HWCAP_ERMSB, 1
.equ HWCAP_ADX, 1
.equ HWCAP_SHA, 1
.equ HWCAP_AVX512F, 1
.equ HWCAP_AVX512BW, 1
.equ HWCAP_AVX512CD, 1
.equ HWCAP_AVX512DQ, 1
.equ HWCAP_AVX512ER, 1
.equ HWCAP_AVX512PF, 1
.equ HWCAP_AVX512VL, 1
.equ HWCAP_AVX512IFMA, 1
.equ HWCAP_AVX512VBMI, 1
# VZEROUPPER is invoked at the end of each function that uses the
# 256-bit AVX ymm* registers to ensure a clean transition back
# to the legacy SSE state. If you're building your programs so that
# you use only VEX-encoded SSE instructions, you can safely comment
# out or remove the vzeroupper instruction in the macro below to
# avoid the extra 5-6 cycle cost of a clean transition.
.macro VZEROPUPPER
vzeroupper
.endm