[PATCH][X86] __builtin_ctz/clz sometimed defined for zero input

Joerg Sonnenberger joerg at britannica.bec.de
Mon Oct 27 08:58:18 PDT 2014


On Mon, Oct 27, 2014 at 02:00:26PM +0000, Robinson, Paul wrote:
> So the architecturally cleanest solution is to ...

Expose the llvm.cttz /llvm.ctlz with 1 as second argument as new
__builtin_cttz / __builtin_ctlz builtins and teach people to use those?

Joerg



More information about the cfe-commits mailing list