Source file src/simd/archsimd/consts.go
1 // Copyright 2026 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 goexperiment.simd 6 7 package archsimd 8 9 // Integer limits. These are the same as the constants in package math, which 10 // archsimd can't import (see go/build's TestDependencies). 11 const ( 12 maxInt8 = 1<<7 - 1 13 minInt8 = -1 << 7 14 maxInt16 = 1<<15 - 1 15 minInt16 = -1 << 15 16 maxInt32 = 1<<31 - 1 17 minInt32 = -1 << 31 18 maxUint8 = 1<<8 - 1 19 maxUint16 = 1<<16 - 1 20 maxUint32 = 1<<32 - 1 21 ) 22