summaryrefslogtreecommitdiff
path: root/neozip/arch/riscv/riscv_natives.h
blob: 38d7aba64864e39c0960ce07876ed4c1d1a8f679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* riscv_natives.h -- RISCV compile-time feature detection macros.
 * For conditions of distribution and use, see copyright notice in zlib.h
 */

#ifndef RISCV_NATIVES_H_
#define RISCV_NATIVES_H_

#if defined(__riscv_v) && defined(__linux__)
#  ifdef RISCV_RVV
#    define RISCV_RVV_NATIVE
#  endif
#endif
#if defined(__riscv_zbc)
#  ifdef RISCV_CRC32_ZBC
#    define RISCV_ZBC_NATIVE
#  endif
#endif

#endif /* RISCV_NATIVES_H_ */