Source file src/simd/archsimd/deprecated.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  // Deprecated CPU feature checks that are wrappers around their replacements.
    10  
    11  // AVXPCLMULQDQ returns whether the CPU supports carryless multiplication on
    12  // 128-bit vectors.
    13  //
    14  // Deprecated: use X86.AVXCLMUL() instead.
    15  //
    16  //go:fix inline
    17  func (X86Features) AVXPCLMULQDQ() bool {
    18  	return X86.AVXCLMUL()
    19  }
    20  
    21  // VPCLMULQDQ returns whether the CPU supports carryless multiplication on
    22  // 256-bit vectors.
    23  //
    24  // Deprecated: use X86.AVX2CLMUL() instead.
    25  //
    26  //go:fix inline
    27  func (X86Features) VPCLMULQDQ() bool {
    28  	return X86.AVX2CLMUL()
    29  }
    30  
    31  // AVX512VPCLMULQDQ returns whether the CPU supports carryless multiplication on
    32  // 512-bit vectors.
    33  //
    34  // Deprecated: use X86.AVX512CLMUL() instead.
    35  //
    36  //go:fix inline
    37  func (X86Features) AVX512VPCLMULQDQ() bool {
    38  	return X86.AVX512CLMUL()
    39  }
    40  
    41  // VAES returns whether the CPU supports AES operations on 256-bit vectors.
    42  //
    43  // Deprecated: use X86.AVX2AES() instead.
    44  //
    45  //go:fix inline
    46  func (X86Features) VAES() bool {
    47  	return X86.AVX2AES()
    48  }
    49  
    50  // AVX512VAES returns whether the CPU supports AES operations on 512-bit vectors.
    51  //
    52  // Deprecated: use X86.AVX512AES() instead.
    53  //
    54  //go:fix inline
    55  func (X86Features) AVX512VAES() bool {
    56  	return X86.AVX512AES()
    57  }
    58  

View as plain text