syscall

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

System V AMD64 ABI syscall implementation (Linux, macOS, FreeBSD, etc.) This calling convention is IDENTICAL on all Unix-like systems.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallNFloat added in v0.4.1

func CallNFloat(fn uintptr, gpr [6]uintptr, sse [8]float64, stackArgs [9]uintptr, numStack int) (r1 uintptr, r2 uintptr, f1 float64)

CallNFloat calls a C function with up to 6 integer register arguments, 8 SSE arguments, and 9 stack-spill arguments (15 total).

gpr: first 6 GP register values (RDI, RSI, RDX, RCX, R8, R9) sse: 8 SSE register values (XMM0-XMM7) as float64 bit patterns stackArgs: additional arguments to push onto the stack before CALL numStack: how many entries in stackArgs are valid (0-9)

Returns:

  • r1: RAX integer return value
  • r2: RDX second integer return value (9-16 byte struct returns)
  • f1: XMM0 float return value (bit pattern)

Types

This section is empty.

Jump to

Keyboard shortcuts

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