[dpdk-dev] [PATCH 1/2] eal/x86: use cpuid builtin

Sergio Gonzalez Monroy sergio.gonzalez.monroy at intel.com
Thu Aug 24 10:21:58 CEST 2017


On 23/08/2017 21:49, Thomas Monjalon wrote:
> Please could you explain why the asm code was used?

I guess we were not aware that there was a builtin for it.

> Are you sure this builtin is implemented everywhere?
>

Actually the builtin used in this patch is not supported in most CLANG 
version (just recently merged upstream),
so I have reworked the patch to use builtin supported in both GCC and 
CLANG 3.4+.

Thanks,
Sergio


More information about the dev mailing list