| ... | @@ -482,7 +482,7 @@ pub fn cacheLineForCpu(cpu: std.Target.Cpu) u16 { | ... | @@ -482,7 +482,7 @@ pub fn cacheLineForCpu(cpu: std.Target.Cpu) u16 { |
| 482 | /// | 482 | /// |
| 483 | /// https://en.wikipedia.org/wiki/False_sharing | 483 | /// https://en.wikipedia.org/wiki/False_sharing |
| 484 | /// https://github.com/golang/go/search?q=CacheLinePadSize | 484 | /// https://github.com/golang/go/search?q=CacheLinePadSize |
| 485 | pub const cache_line = cacheLineForCpu(builtin.cpu); | 485 | pub const cache_line: comptime_int = cacheLineForCpu(builtin.cpu); |
| 486 | | 486 | |
| 487 | test "current CPU has a cache line size" { | 487 | test "current CPU has a cache line size" { |
| 488 | _ = cache_line; | 488 | _ = cache_line; |