Skip to content

Commit 8699676

Browse files
author
Ethan Steinberg
committed
Fix mac again
1 parent 65c9966 commit 8699676

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

native/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ cc_library(
115115
hdrs=["property_reader.hh"],
116116
srcs=["property_reader.cc"],
117117
deps=[":pyutils", ":dtype", "@zstd", "@streamvbyte//:streamvbyte",
118+
"@abseil-cpp//absl/numeric:bits",
118119
"@abseil-cpp//absl/time", "@abseil-cpp//absl/types:span", ":mmap_file"],
119120
)
120121

native/property_reader.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <vector>
1919
#include <bit>
2020

21+
#include "absl/numeric/bits.h"
2122
#include "absl/time/civil_time.h"
2223
#include "absl/types/span.h"
2324
#include "dtype.hh"
@@ -261,7 +262,7 @@ struct StringPropertyReader : PropertyReader {
261262
size_t current_result = result_index;
262263
while (null_byte != 0) {
263264
static_assert(sizeof(uint64_t) == sizeof(unsigned long long));
264-
int num_zeros = std::countr_zero(null_byte);
265+
int num_zeros = absl::countr_zero(null_byte);
265266
current_result += num_zeros;
266267

267268
null_byte >>= 1;
@@ -512,7 +513,7 @@ struct PrimitivePropertyReader : PropertyReader {
512513
for (uint64_t null_byte : null_bytes) {
513514
size_t current_result = result_index;
514515
while (null_byte != 0) {
515-
int num_zeros = std::countr_zero(null_byte);
516+
int num_zeros = absl::countr_zero(null_byte);
516517
current_result += num_zeros;
517518

518519
null_byte >>= 1;

0 commit comments

Comments
 (0)