Source file test/fixedbugs/issue81844.go

     1  // compile
     2  
     3  //go:build goexperiment.simd
     4  
     5  // Copyright 2026 The Go Authors. All rights reserved.
     6  // Use of this source code is governed by a BSD-style
     7  // license that can be found in the LICENSE file.
     8  
     9  package p
    10  
    11  import "simd"
    12  
    13  func f(_ int, _ byte, b []byte) int {
    14  	return simd.BroadcastUint8s(' ').StorePart(b)
    15  }
    16  
    17  func g(int, byte, []byte) int {
    18  	return simd.BroadcastUint8s(' ').StorePart(nil)
    19  }
    20  

View as plain text