From 05e303e9a0a501992ef2e789cfbaad4baeae6cf1 Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 9 Sep 2021 16:16:06 +0200 Subject: [PATCH 1/2] Make `QPC` thread local again. --- core/time/time_windows.odin | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/time/time_windows.odin b/core/time/time_windows.odin index 6d4648b12..18a8c4046 100644 --- a/core/time/time_windows.odin +++ b/core/time/time_windows.odin @@ -24,8 +24,7 @@ _tick_now :: proc() -> Tick { return q * num + r * num / den } - // @thread_local qpc_frequency: win32.LARGE_INTEGER - qpc_frequency: win32.LARGE_INTEGER + @thread_local qpc_frequency: win32.LARGE_INTEGER if qpc_frequency == 0 { win32.QueryPerformanceFrequency(&qpc_frequency) From e5652da6dac9ce98873da05a56a3f4d9777c867a Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Thu, 9 Sep 2021 16:57:58 +0200 Subject: [PATCH 2/2] Fix typo. --- tests/core/hash/test_core_hash.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/core/hash/test_core_hash.odin b/tests/core/hash/test_core_hash.odin index 44c7ef044..13ebedbd8 100644 --- a/tests/core/hash/test_core_hash.odin +++ b/tests/core/hash/test_core_hash.odin @@ -79,7 +79,7 @@ benchmark_xxhash64 :: proc(options: ^time.Benchmark_Options, allocator := contex } benchmark_print :: proc(name: string, options: ^time.Benchmark_Options) { - fmt.printf("\t[%v] %v rounds, %v bytes procesed in %v ns\n\t\t%5.3f rounds/s, %5.3f MiB/s\n", + fmt.printf("\t[%v] %v rounds, %v bytes processed in %v ns\n\t\t%5.3f rounds/s, %5.3f MiB/s\n", name, options.rounds, options.processed,