]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/common/bloom_filter.cc
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / common / bloom_filter.cc
index 9fb28efed68e5d321bf74da695594f781a37a530..4bacb5473ae36952299550f492fe8d68df06c4b1 100644 (file)
@@ -3,8 +3,8 @@
 
 #include "common/bloom_filter.hpp"
 
+#include <bit>
 #include <numeric>
-#include "include/intarith.h"
 
 using ceph::bufferlist;
 using ceph::bufferptr;
@@ -17,7 +17,7 @@ double bloom_filter::density() const
     bit_table_.begin(),
     bit_table_.begin() + table_size_,
     0u, [](unsigned set, cell_type cell) {
-      return set + popcount(cell);
+      return set + std::popcount(cell);
     });
   return (double)set / (table_size_ * sizeof(cell_type) * CHAR_BIT);
 }