1234567891011121314151617181920 |
- /*
- * This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at https://mozilla.org/MPL/2.0/.
- */
- package main
- import (
- "unsafe"
- "golang.org/x/sys/cpu"
- )
- const SizeCacheLine = unsafe.Sizeof(cpu.CacheLinePad{})
- // TODO Is there a better way than this lousy guess?
- const SizeCacheL1 = 512 * SizeCacheLine
- // Cap line buffer
- const MaxSizeBufferLine = 1024 * 1024 * 1024
|