99a2dd955f
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
22 lines
419 B
C
22 lines
419 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2017-2018 Linaro Limited
|
|
*/
|
|
|
|
#ifndef __INCLUDE_RTE_TABLE_HASH_FUNC_ARM64_H__
|
|
#define __INCLUDE_RTE_TABLE_HASH_FUNC_ARM64_H__
|
|
|
|
#define _CRC32CX(crc, val) \
|
|
__asm__("crc32cx %w[c], %w[c], %x[v]":[c] "+r" (crc):[v] "r" (val))
|
|
|
|
static inline uint64_t
|
|
rte_crc32_u64(uint64_t crc, uint64_t v)
|
|
{
|
|
uint32_t crc32 = crc;
|
|
|
|
_CRC32CX(crc32, v);
|
|
|
|
return crc32;
|
|
}
|
|
|
|
#endif
|