Skip to content

Commit

Permalink
unspecial case hash function, works better for 10k now
Browse files Browse the repository at this point in the history
  • Loading branch information
austindonisan committed Feb 2, 2024
1 parent 68720a7 commit 50d8765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 1brc.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,8 +902,8 @@ __attribute__((always_inline)) inline __m256i hash_cities(__m256i a, __m256i b,
__m256i egfh = _mm256_blend_epi32(ef, gh, 0xCC);

// preserve nibbles
__m256i acbd2 = _mm256_srli_epi64(acbd, 31);
__m256i egfh2 = _mm256_srli_epi64(egfh, 31);
__m256i acbd2 = _mm256_srli_epi64(acbd, 28);
__m256i egfh2 = _mm256_srli_epi64(egfh, 28);

// A_C_D_B_
// E_G_F_H_
Expand Down

0 comments on commit 50d8765

Please sign in to comment.