[PATCH] [Support] Add BitHacks.h - generic bit utility functions.

Rafael Ávila de Espíndola rafael.espindola at gmail.com
Wed May 22 06:55:39 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.
----------------
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-reviews.chandlerc.com/D841



More information about the llvm-commits mailing list