// Copyright 2020 The Go Authors. All rights reserved.// Use of this source code is governed by a BSD-style// license that can be found in the LICENSE file.
// +build mips64 mips64lepackagecpu// HWCAP bits. These are exposed by the Linux kernel 5.4.const(// CPU featureshwcap_MIPS_MSA=1<<1)funcdoinit(){// HWCAP feature bitsMIPS64X.HasMSA=isSet(hwCap,hwcap_MIPS_MSA)}funcisSet(hwcuint,valueuint)bool{returnhwc&value!=0}