summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2020-12-03 09:58:21 +0000
committerGeir Storli <geirst@verizonmedia.com>2020-12-03 09:58:21 +0000
commit7a276551f8349db28f32c36a68ab96c46c90517c (patch)
tree392bdaeace1cf7b2a6dd1489c7545460072c2d55 /storage
parente7867c8653abd08cdca68ba00ff02deda406fa81 (diff)
Make function inline and noexcept.
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/common/bucket_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/common/bucket_utils.h b/storage/src/vespa/storage/common/bucket_utils.h
index 4d29b3c6204..d0dedfabcdb 100644
--- a/storage/src/vespa/storage/common/bucket_utils.h
+++ b/storage/src/vespa/storage/common/bucket_utils.h
@@ -11,7 +11,7 @@ namespace storage {
/**
* Returns the super bucket key of the given bucket id key based on the minimum used bits allowed.
*/
-uint64_t get_super_bucket_key(const document::BucketId& bucket_id) {
+inline uint64_t get_super_bucket_key(const document::BucketId& bucket_id) noexcept {
assert(bucket_id.getUsedBits() >= spi::BucketLimits::MinUsedBits);
// Since bucket keys have count-bits at the LSB positions, we want to look at the MSBs instead.
return (bucket_id.toKey() >> (64 - spi::BucketLimits::MinUsedBits));