github.com/bir3/gocompiler@v0.9.2202/src/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() {}