Source file src/simd/testdata/v.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 testdata
     8  
     9  // For testing purposes, F and V are exported simd types,
    10  // and should have the proper (variable) unsafe.Sizeof
    11  
    12  import (
    13  	"simd"
    14  )
    15  
    16  var V simd.Float32s
    17  
    18  func F() simd.Float32s {
    19  	var x simd.Float32s
    20  	return x
    21  }
    22  

View as plain text