From dd5c7da5a257a16a093c06d70e06bc6a7b34e219 Mon Sep 17 00:00:00 2001 From: Austin Donisan Date: Fri, 9 Feb 2024 05:50:54 +0000 Subject: [PATCH] minor format tweak --- 1brc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1brc.c b/1brc.c index d9e58d8..c8ef67e 100644 --- a/1brc.c +++ b/1brc.c @@ -836,7 +836,7 @@ __attribute__((aligned(4096))) void process_chunk(const void * const restrict ba // scale+offset hashs in the store/load to avoid register intermediates // long instead of int to advoid unecessary sign extends long hash0 = insert_city(&hash, _mm256_extract_epi32(city_hashes, 0), maskedCity0); - __m128i vals0 = _mm_load_si128(hash.p.hashedStorage + hash0*4 + 0*16); + __m128i vals0 = _mm_load_si128(hash.p.hashedStorage + 4*hash0 + 16*0); long hash4 = insert_city(&hash, _mm256_extract_epi32(city_hashes, 2), maskedCity4); __m128i vals4 = _mm_load_si128(hash.p.hashedStorage + 4*hash4 + 16*4);