-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.h
38 lines (31 loc) · 952 Bytes
/
config.h
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
#pragma once
#define FORCE_INLINE inline __attribute__((always_inline))
#if defined(HAVE_AVX512VBMI_INSTRUCTIONS) || defined(HAVE_AVX512VL_INSTRUCTIONS)
# if !defined(HAVE_AVX512BW_INSTRUCTIONS)
# define HAVE_AVX512BW_INSTRUCTIONS 1
# endif
#endif
#if defined(HAVE_AVX512BW_INSTRUCTIONS)
# if !defined(HAVE_AVX512_INSTRUCTIONS)
# define HAVE_AVX512_INSTRUCTIONS 1
# endif
#endif
#if defined(HAVE_AVX512_INSTRUCTIONS)
# if !defined(HAVE_AVX2_INSTRUCTIONS)
# define HAVE_AVX2_INSTRUCTIONS 1
# endif
#endif
#if defined(HAVE_AVX2_INSTRUCTIONS) || defined(HAVE_XOP_INSTRUCTIONS)
# if !defined(HAVE_SSE_INSTRUCTIONS)
# define HAVE_SSE_INSTRUCTIONS 1
# endif
#endif
#if !defined(HAVE_NEON_INSTRUCTIONS) && !defined(HAVE_RVV_INSTRUCTIONS)
# include <immintrin.h>
# include <x86intrin.h>
#endif
#if defined(HAVE_RVV_INSTRUCTIONS)
# ifdef __riscv_v_intrinsic
# include <riscv_vector.h>
# endif
#endif