misc: switch to clang-9
Type: improvement Change-Id: Iebf77a63c0c19b130a3fbd26b5293304a9fed4c1 Signed-off-by: Damjan Marion <damarion@cisco.com>
This commit is contained in:
Damjan Marion
committed by
Dave Barach
parent
a3108e65f3
commit
4ba16a44b1
2
Makefile
2
Makefile
@ -86,7 +86,7 @@ ifeq ($(OS_VERSION_ID),16.04)
|
||||
else ifeq ($(OS_VERSION_ID),18.04)
|
||||
DEB_DEPENDS += python-dev
|
||||
DEB_DEPENDS += libssl-dev
|
||||
DEB_DEPENDS += gcc-8
|
||||
DEB_DEPENDS += gcc-8 clang-9
|
||||
else ifeq ($(OS_VERSION_ID),20.04)
|
||||
LIBFFI=libffi7
|
||||
else ifeq ($(OS_ID)-$(OS_VERSION_ID),debian-8)
|
||||
|
@ -13,6 +13,8 @@
|
||||
|
||||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR)
|
||||
|
||||
set(CMAKE_C_COMPILER_NAMES clang-9 cc)
|
||||
|
||||
project(vpp C)
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
|
@ -43,7 +43,7 @@ aes_enc_round (u8x16 a, u8x16 k)
|
||||
{
|
||||
#if defined (__AES__)
|
||||
return (u8x16) _mm_aesenc_si128 ((__m128i) a, (__m128i) k);
|
||||
#elif defined (__ARM_FEATURE_AES)
|
||||
#elif defined (__ARM_FEATURE_CRYPTO)
|
||||
return vaesmcq_u8 (vaeseq_u8 (a, u8x16_splat (0))) ^ k;
|
||||
#endif
|
||||
}
|
||||
@ -79,7 +79,7 @@ aes_enc_last_round (u8x16 a, u8x16 k)
|
||||
{
|
||||
#if defined (__AES__)
|
||||
return (u8x16) _mm_aesenclast_si128 ((__m128i) a, (__m128i) k);
|
||||
#elif defined (__ARM_FEATURE_AES)
|
||||
#elif defined (__ARM_FEATURE_CRYPTO)
|
||||
return vaeseq_u8 (a, u8x16_splat (0)) ^ k;
|
||||
#endif
|
||||
}
|
||||
@ -154,7 +154,7 @@ aes_inv_mix_column (u8x16 a)
|
||||
{
|
||||
#if defined (__AES__)
|
||||
return (u8x16) _mm_aesimc_si128 ((__m128i) a);
|
||||
#elif defined (__ARM_FEATURE_AES)
|
||||
#elif defined (__ARM_FEATURE_CRYPTO)
|
||||
return vaesimcq_u8 (a);
|
||||
#endif
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ static_always_inline
|
||||
return n_left;
|
||||
}
|
||||
|
||||
static_always_inline void
|
||||
static_always_inline __clib_unused void
|
||||
dpdk_prefetch_buffer (vlib_main_t * vm, struct rte_mbuf *mb)
|
||||
{
|
||||
vlib_buffer_t *b = vlib_buffer_from_rte_mbuf (mb);
|
||||
|
Reference in New Issue
Block a user