X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fcpu.h;h=48c68a1169936641f779b10c59f77f68cd0c3923;hb=a8c3b86ebebea357b89ad181bb4c141db4c6505d;hp=31a6e5b48e060ab6fad93afb7b49baccd1065ccb;hpb=65ec33bd006406c220cb6acb93fdd97894b0107c;p=vpp.git diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h index 31a6e5b48e0..48c68a11699 100644 --- a/src/vppinfra/cpu.h +++ b/src/vppinfra/cpu.h @@ -116,6 +116,7 @@ _CLIB_MARCH_FN_REGISTRATION(fn) #endif #define foreach_x86_64_flags \ _ (sse3, 1, ecx, 0) \ +_ (pclmulqdq, 1, ecx, 1) \ _ (ssse3, 1, ecx, 9) \ _ (sse41, 1, ecx, 19) \ _ (sse42, 1, ecx, 20) \ @@ -234,7 +235,7 @@ static inline int clib_cpu_supports_ ## flag() { return 0; } static inline int clib_cpu_supports_aes () { -#if defined (__aarch64__) +#if defined(__x86_64__) return clib_cpu_supports_x86_aes (); #elif defined (__aarch64__) return clib_cpu_supports_aarch64_aes ();