Skip to content

Commit

Permalink
Comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbinks committed Jan 9, 2025
1 parent 308e249 commit dc7e2c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/TaskScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,8 @@ static inline uint32_t Hash32( uint32_t in_ )
static const uint32_t PRIME32_5 = 374761393U; // 0b00010110010101100110011110110001
static const uint32_t SEED = 0; // can configure seed if needed

// simple hash of nodes, does not check if nodePool is compressed or not.
// less than 16 bytes of input so simplified hash steps
uint32_t acc = SEED + PRIME32_5;

// add node types to map, and also ensure that fully empty nodes are well distributed by hashing the pointer.
acc += in_;
acc = acc ^ (acc >> 15);
acc = acc * PRIME32_2;
Expand Down

0 comments on commit dc7e2c7

Please sign in to comment.