wag: github.com/tsavola/wag/internal/gen/rodata Index | Files

package rodata

import "github.com/tsavola/wag/internal/gen/rodata"

Index

Package Files

rodata.go

Constants

const (
    // Masks are 16-byte aligned for x86-64 SSE.
    Mask7fAddr32 = CommonsAddr + iota*16
    Mask7fAddr64
    Mask80Addr32
    Mask80Addr64
    Mask5f00Addr32 // 01011111000000000000000000000000
    Mask43e0Addr64 // 0100001111100000000000000000000000000000000000000000000000000000
    TableAddr
)
const (
    Mask7fBase    = MaskBaseAddr(Mask7fAddr32)
    Mask80Base    = MaskBaseAddr(Mask80Addr32)
    MaskTruncBase = MaskBaseAddr(Mask5f00Addr32)
)
const CommonsAddr = 128

func MaskAddr Uses

func MaskAddr(maskBaseAddr MaskBaseAddr, t wa.Type) int32

MaskAddr calculates the text address for reading a mask for the given type size. maskBaseAddr should be one of the Mask*Base constants.

type MaskBaseAddr Uses

type MaskBaseAddr int32

Package rodata imports 1 packages (graph) and is imported by 3 packages. Updated 2019-09-06. Refresh now. Tools for package owners.