github.com/primecitizens/pcz/std@v0.2.1/builtin/ptr/tptr.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2023 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  package stdptr
     9  
    10  // TaggedPointer is a pointer with a numeric tag.
    11  // The size of the numeric tag is GOARCH-dependent,
    12  // currently at least 10 bits.
    13  // This should only be used with pointers allocated outside the Go heap.
    14  type TaggedPointer uint64
    15  
    16  // MinTagBits is the minimum number of tag bits that we expect.
    17  const MinTagBits = 10