ffi

package
v0.0.0-...-27647ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2023 License: BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const CCALL_MAXSTACK = 32
View Source
const CCALL_NARG_FPR = 8
View Source
const CCALL_NARG_GPR = 8
View Source
const CCALL_NRET_FPR = 4
View Source
const CCALL_NRET_GPR = 2
View Source
const CCALL_NUM_FPR = CCALL_NARG_FPR
View Source
const CCALL_NUM_GPR = CCALL_NARG_GPR
View Source
const CCALL_SPS_FREE = 0

Variables

This section is empty.

Functions

func Ffi_call

func Ffi_call(cs unsafe.Pointer) uintptr

func FindSleep

func FindSleep() uintptr

func Sqrt

func Sqrt(x float32) float32

Types

type CCallState

type CCallState struct {
	Fn uintptr // Pointer to called function.

	SpAdj uint32 // Stack pointer adjustment.
	Nsp   uint8  // Number of stack slots.

	RetRef bool    // Return value by reference.
	RetP   uintptr // Aggregate return pointer in x8.

	Fpr   [CCALL_NUM_FPR]FPRArg  // Arguments/results in FPRs.
	Gpr   [CCALL_NUM_GPR]GPRArg  // Arguments/results in GPRs.
	Stack [CCALL_MAXSTACK]GPRArg // Stack slots.
}

type FPRArg

type FPRArg uint64

type GPRArg

type GPRArg uint64

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL