[PATCH] [Support] Add type generic bit utilities to MathExtras.h

Michael Spencer bigcheesegs at gmail.com
Wed May 22 14:58:13 PDT 2013



================
Comment at: include/llvm/Support/BitHacks.h:172
@@ +171,3 @@
+
+  // Use ^ instead of - because both gcc and llvm can remove the associated ^
+  // in the __builtin_clz intrinsic on x86.
----------------
Rafael Ávila de Espíndola wrote:
> llvm cannot remove a '-'? Would you mind reporting a bug? It is probably just us not noticing that we have a power of two.
http://llvm.org/bugs/show_bug.cgi?id=16115


http://llvm-reviews.chandlerc.com/D841



More information about the llvm-commits mailing list