https://bugs.llvm.org/show_bug.cgi?id=37062

            Bug ID: 37062
           Summary: Clang should support _BitscanForward and
                    _BitscanForward64 in constant expressions
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: billy.on...@gmail.com
                CC: dgre...@apple.com, llvm-bugs@lists.llvm.org

In MSVC++'s STL, we implemented binary GCD as this can be faster, as it
replaces divisions with bsf. Unfortunately, right now we had to fake bsf with a
loop, resulting in std::gcd actually being slower than a naïve Euclid's
algorithm implementation. This could be substantially faster with real bsf.

Note that C1XX doesn't currently support _BitscanForward in constexpr contexts;
this bug is being filed at the same time it's being filed against C1XX (and
EDG).

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to