X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra%2Fcpu.h;h=75b01e606f3fda668736b907bb3b27a4a03702f1;hb=04f3db3847d242857b9d9d858bcdca538a1be7d7;hp=9c149f3fa2aecd469c9c617604201b080896671a;hpb=2d8bf304230102a6d9b312b98315418617798175;p=vpp.git diff --git a/src/vppinfra/cpu.h b/src/vppinfra/cpu.h index 9c149f3fa2a..75b01e606f3 100644 --- a/src/vppinfra/cpu.h +++ b/src/vppinfra/cpu.h @@ -51,6 +51,13 @@ return & fn; \ } +#ifdef CLIB_MULTIARCH_VARIANT +#define __CLIB_MULTIARCH_FN(a,b) a##_##b +#define _CLIB_MULTIARCH_FN(a,b) __CLIB_MULTIARCH_FN(a,b) +#define CLIB_MULTIARCH_FN(fn) _CLIB_MULTIARCH_FN(fn,CLIB_MULTIARCH_VARIANT) +#else +#define CLIB_MULTIARCH_FN(fn) fn +#endif #define foreach_x86_64_flags \ _ (sse3, 1, ecx, 0) \