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