blob: eb08552db7a144c81ead714689e723fc81923be7 [file] [log] [blame]
Andre Przywarac7d10e32020-10-16 12:06:57 +01001/*
2 * Copyright (c) 2021 ARM Limited
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 * The definitions below are a subset of what we would normally get by using
7 * the compiler's version of arm_acle.h. We can't use that directly because
8 * we specify -nostdinc in the Makefiles.
9 *
10 * We just define the functions we need so far.
11 */
12
13#ifndef ARM_ACLE_H
14#define ARM_ACLE_H
15
16#if !defined(__aarch64__) || defined(__clang__)
Manish V Badarkhe7a867922021-04-22 14:41:27 +010017# define __crc32b __builtin_arm_crc32b
Andre Przywarac7d10e32020-10-16 12:06:57 +010018# define __crc32w __builtin_arm_crc32w
19#else
Manish V Badarkhe7a867922021-04-22 14:41:27 +010020# define __crc32b __builtin_aarch64_crc32b
Andre Przywarac7d10e32020-10-16 12:06:57 +010021# define __crc32w __builtin_aarch64_crc32w
22#endif
23
24#endif /* ARM_ACLE_H */