[PATCH] D75723: [X86] Make intrinsics _BitScan* not limited to Windows

Craig Topper via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 5 23:30:48 PST 2020


craig.topper added inline comments.


================
Comment at: clang/include/clang/Basic/BuiltinsX86.def:1904
+// BITSCAN
+TARGET_BUILTIN(_BitScanForward, "UcUNi*UNi", "n", "")
+TARGET_BUILTIN(_BitScanReverse, "UcUNi*UNi", "n", "")
----------------
The N specifier here is sort of MSVC mode specific. I need to think about this.

This also makes this available without including a header file which isn't good if it doesn't start with __builtin.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75723/new/

https://reviews.llvm.org/D75723





More information about the cfe-commits mailing list