Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/iceberg/util/mumbling_bitmap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ bool ContainsByte(const uint8_t* container, uint8_t length, uint8_t value) {
return false;
}

#if !ICEBERG_MUMBLING_SSE2
// Portable SWAR (SIMD within a register) version of ContainsByte: compares 8
// bytes per 64-bit word. Reads 32 bytes at `container`, so the caller must
// make sure they are inside the buffer.
Expand All @@ -82,7 +83,7 @@ bool ContainsByte32(const uint8_t* container, uint8_t length, uint8_t value) {
return found != 0;
}

#if ICEBERG_MUMBLING_SSE2
#else
// SSE2 version of ContainsByte32. Reads 32 bytes at `container`, so the caller
// must make sure they are inside the buffer.
bool ContainsByte32Sse2(const uint8_t* container, uint8_t length, uint8_t value) {
Expand Down
Loading