================
@@ -111,7 +114,69 @@ unsigned invalid_bithacks(integer_like w, unsigned x, 
signed y, unsigned z) {
 }
 
 template <class T>
-T bithacks_generic(T x) {
-  // substitution only valid for some instantiation of bithacks_generic
+T has_one_bit_bithack_generic(T x) {
+  // substitution only valid for some instantiation of 
has_one_bit_bithack_generic
   return x && !(x & (x - 1));
 }
+
+/*
+ * popcount pattern
+ */
+namespace std {
+using size_t = decltype(sizeof(0));
+template<size_t N> class bitset {
+  public:
+  bitset(unsigned long);
----------------
localspook wrote:

Nit: this should technically be:
```suggestion
  bitset(unsigned long long);
```

https://github.com/llvm/llvm-project/pull/185740
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to