blob: d1bc0f93447a75a5f94098839668ef3f47869aff [file] [log] [blame]
Andre Przywarac7d10e32020-10-16 12:06:57 +01001/*
Govindraj Rajaeee28e72023-08-01 15:52:40 -05002 * Copyright (c) 2021 Arm Limited
Andre Przywarac7d10e32020-10-16 12:06:57 +01003 *
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 */