Make LazyField correct on 32 bit platforms.

PiperOrigin-RevId: 625090378
pull/16506/head
Protobuf Team Bot 7 months ago committed by Copybara-Service
parent a5be8bdb9f
commit 4515006071
  1. 4
      src/google/protobuf/port.h

@ -249,6 +249,10 @@ inline constexpr bool DebugHardenClearOneofMessageOnArena() {
#endif
}
// Returns true if pointers are 8B aligned, leaving least significant 3 bits
// available.
inline constexpr bool PtrIsAtLeast8BAligned() { return alignof(void*) >= 8; }
// Prefetch 5 64-byte cache line starting from 7 cache-lines ahead.
// Constants are somewhat arbitrary and pretty aggressive, but were
// chosen to give a better benchmark results. E.g. this is ~20%

Loading…
Cancel
Save