Skip to content

Commit 84f887c

Browse files
committed
Revert "[libc] Fix embedded version of bcmp / memcmp"
This reverts commit 7c9b8fa.
1 parent 7c9b8fa commit 84f887c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libc/src/string/memory_utils/bcmp_implementations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace __llvm_libc {
2424
inline_bcmp_embedded_tiny(CPtr p1, CPtr p2, size_t count) {
2525
#pragma nounroll
2626
for (size_t offset = 0; offset < count; ++offset)
27-
if (auto value = generic::Bcmp<1>::block(p1 + offset, p2 + offset))
27+
if (auto value = generic::Bcmp<1>::block(p1, p2))
2828
return value;
2929
return BcmpReturnType::ZERO();
3030
}

libc/src/string/memory_utils/memcmp_implementations.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace __llvm_libc {
2424
inline_memcmp_embedded_tiny(CPtr p1, CPtr p2, size_t count) {
2525
#pragma nounroll
2626
for (size_t offset = 0; offset < count; ++offset)
27-
if (auto value = generic::Memcmp<1>::block(p1 + offset, p2 + offset))
27+
if (auto value = generic::Memcmp<1>::block(p1, p2))
2828
return value;
2929
return MemcmpReturnType::ZERO();
3030
}

0 commit comments

Comments
 (0)