[api] Restore comment on __restrict__ local in encode_varint_raw_64

This commit is contained in:
J. Nick Koston
2026-03-28 19:45:07 -10:00
parent 537af1fe6b
commit 3886751662
+2
View File
@@ -224,6 +224,8 @@ class ProtoWriteBuffer {
this->encode_varint_raw_slow_(value);
}
void encode_varint_raw_64(uint64_t value) {
// Use __restrict__ so the compiler knows pos doesn't alias this->
// and can keep it in a register across the loop.
uint8_t *__restrict__ pos = this->pos_;
while (value > 0x7F) {
*pos++ = static_cast<uint8_t>(value | 0x80);