Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit553e169

Browse files
committed
1 parente7941a9 commit553e169

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎src/include/lib/simplehash.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,12 @@ SH_COMPUTE_PARAMETERS(SH_TYPE * tb, uint32 newsize)
214214
/* supporting zero sized hashes would complicate matters */
215215
size=Max(newsize,2);
216216

217-
/* round up size to the next power of 2, that'sthe bucketing works */
217+
/* round up size to the next power of 2, that'show bucketing works */
218218
size=sh_pow2(size);
219219
Assert(size <=SH_MAX_SIZE);
220220

221221
/*
222-
* Verify allocation of ->data is possible on platform, without
222+
* Verifythatallocation of ->data is possible on this platform, without
223223
* overflowing Size.
224224
*/
225225
if ((((uint64)sizeof(SH_ELEMENT_TYPE))*size) >=MaxAllocHugeSize)
@@ -234,8 +234,8 @@ SH_COMPUTE_PARAMETERS(SH_TYPE * tb, uint32 newsize)
234234
tb->sizemask=tb->size-1;
235235

236236
/*
237-
* Computegrowththresholdhere and after growing the table, to make
238-
*computations during insert cheaper.
237+
* Computethe nextthresholdat which we need to grow the hash table
238+
*again.
239239
*/
240240
if (tb->size==SH_MAX_SIZE)
241241
tb->grow_threshold= ((double)tb->size)*SH_MAX_FILLFACTOR;
@@ -696,7 +696,7 @@ SH_DELETE(SH_TYPE * tb, SH_KEY_TYPE key)
696696
* or an element at its optimal position is encountered.
697697
*
698698
* While that sounds expensive, the average chain length is short,
699-
* and deletions would otherwise requiretoombstones.
699+
* and deletions would otherwise requiretombstones.
700700
*/
701701
while (true)
702702
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp