diff options
Diffstat (limited to 'absl/base')
-rw-r--r-- | absl/base/call_once.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/absl/base/call_once.h b/absl/base/call_once.h index 5d823a11a013..25c783e5f3e0 100644 --- a/absl/base/call_once.h +++ b/absl/base/call_once.h @@ -134,7 +134,10 @@ enum { kOnceInit = 0, kOnceRunning = 0x65C2937B, kOnceWaiter = 0x05A308D2, - kOnceDone = 0x3F2D8AB0, + // A very small constant is chosen for kOnceDone so that it fit in a single + // compare with immediate instruction for most common ISAs. This is verified + // for x86, POWER and ARM. + kOnceDone = 221, // Random Number }; template <typename Callable, typename... Args> |