Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
deadalnix committed Feb 2, 2023
1 parent 70f630f commit de3f46f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion sdlib/sys/linux/config.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
module sys.linux.config;

version (linux):
version(linux):

// import sys.posix.config;
enum _XOPEN_SOURCE = 600;
Expand Down
4 changes: 2 additions & 2 deletions sdlib/sys/linux/elf.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/
module sys.linux.elf;

version (linux):
extern (C):
version(linux):
extern(C):
// pure:
// nothrow:

Expand Down
4 changes: 2 additions & 2 deletions sdlib/sys/linux/link.d
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
*/
module sys.linux.link;

version (linux):
extern (C):
version(linux):
extern(C):
// nothrow:

import core.stdc.stdint /+ : uintptr_t, uint32_t +/;
Expand Down
6 changes: 3 additions & 3 deletions src/config/map.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ ubyte HTag(hash_t h) {

/**
* The index of the bucket in which we should probe.
*
*
* Uses bits that do not overlap with Htag, to minimize
* false negatives when filtering tags.
*/
Expand All @@ -30,11 +30,11 @@ uint HIndex(hash_t h) {
/**
* The offset of the bucket we need to probe next if
* the curent one doesn't containt what we are lookign for.
*
*
* We make sure HStep is odd. Because the number of buckets
* is a power of 2, we are guaranteed that they are coprime,
* which in turn ensures us that we will visit all buckets.
*
*
* Randomizing probing ensure we avoid clumping.
*/
uint HStep(hash_t h) {
Expand Down

0 comments on commit de3f46f

Please sign in to comment.