github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/cmd/compile/internal/typebits/typebits.go (about)

     1  // Copyright 2013 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  package typebits
     6  
     7  import (
     8  	"github.com/shogo82148/std/cmd/compile/internal/bitvec"
     9  	"github.com/shogo82148/std/cmd/compile/internal/types"
    10  )
    11  
    12  // NOTE: The bitmap for a specific type t could be cached in t after
    13  // the first run and then simply copied into bv at the correct offset
    14  // on future calls with the same type t.
    15  func Set(t *types.Type, off int64, bv bitvec.BitVec)
    16  
    17  // SetNoCheck is like Set, but do not check for alignment.
    18  func SetNoCheck(t *types.Type, off int64, bv bitvec.BitVec)