github.com/JimmyHuang454/JLS-go@v0.0.0-20230831150107-90d536585ba0/internal/cpu/cpu_loong64.go (about) 1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build loong64 6 7 package cpu 8 9 // CacheLinePadSize is used to prevent false sharing of cache lines. 10 // We choose 64 because Loongson 3A5000 the L1 Dcache is 4-way 256-line 64-byte-per-line. 11 const CacheLinePadSize = 64 12 13 func doinit() {}