summaryrefslogtreecommitdiffstats
path: root/util/generic/hash_primes.h
diff options
context:
space:
mode:
authorAlexander Fokin <[email protected]>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:38 +0300
commitbf9e69a933f89af083d895185f01ed65e4d90766 (patch)
treeb2cc84ee7850122e7ccf51d0ea21e4fa7e7a5685 /util/generic/hash_primes.h
parent863a59a65247c24db7cb06789bc5cf79d04da32f (diff)
Restoring authorship annotation for Alexander Fokin <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/generic/hash_primes.h')
-rw-r--r--util/generic/hash_primes.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/util/generic/hash_primes.h b/util/generic/hash_primes.h
index a7750716b7b..4dc2da0b8f0 100644
--- a/util/generic/hash_primes.h
+++ b/util/generic/hash_primes.h
@@ -1,5 +1,5 @@
-#pragma once
-
+#pragma once
+
#include <util/system/compiler.h>
#include <util/system/types.h>
@@ -7,14 +7,14 @@
#include <intrin.h>
#endif
-/**
- * Calculates the number of buckets for the hash table that will hold the given
- * number of elements.
- *
- * @param elementCount Number of elements that the hash table will hold.
- * @returns Number of buckets, a prime number that is
- * greater or equal to `elementCount`.
- */
+/**
+ * Calculates the number of buckets for the hash table that will hold the given
+ * number of elements.
+ *
+ * @param elementCount Number of elements that the hash table will hold.
+ * @returns Number of buckets, a prime number that is
+ * greater or equal to `elementCount`.
+ */
Y_CONST_FUNCTION
unsigned long HashBucketCount(unsigned long elementCount);