stubbi/math

Active release

An unsigned 64-bit minimum routine for the System V AMD64 ABI.

Version
0.4.0
License
MIT
Formats
Source archive
Release targets
  • x86_64-linux

Use this package

Install Asm before you fetch a file. Run asm doctor to check the required host tools.

Source archive · x86_64-linux
asm fetch stubbi/math@0.4.0 --target x86_64-linux --kind source

Fetch downloads and checks bytes. It does not execute the package.

Inspect release files

Readme

Source snapshot: README.md at commit 1dbe731fbe19d1e6201afd662699382e4983655a. This is source documentation, not artifact verification.

Unsigned integer helpers

This package supplies asm_u64_min for Linux x86-64 with the System V ABI. It returns the smaller of two unsigned 64-bit integers. The input values use rdi and rsi. The result uses rax. The function changes rax and the arithmetic flags. It does not access data memory or allocate stack storage. The caller must supply a valid call frame.

Run the example

From this directory, run:

asm run
asm test

The example prints min(12, 37) = 12. The test covers equal values, zero, the largest value, reversed inputs, and the signed boundary. These tests are not a formal proof. This package makes no performance claim.

Use the function

From a consuming project, add the exact version:

asm add stubbi/math@0.2.0 --target x86_64-linux

Include the source in your GNU assembler file:

.include "stubbi/math/0.2.0/x86_64-linux/src/min.s"

ASM adds .asm/packages to the assembler's include path. Call asm_u64_min with the interface described above. Include the file once in each linked program.

Files

1 release files shown.

Source archive

math-0.4.0-x86_64-linux-source.tar.gz
Architecture
x86-64 (x86_64)
Target
x86_64-linux
Format
source
Size
2054 bytes

SHA-2565276f2810d875b54c1dd579e3a6152cfd9d0e63a49decd1d411d0796d2bd0a08

Download source archive

Fetch this file
asm fetch stubbi/math@0.4.0 --target x86_64-linux --kind source

Declared dependencies

No package dependencies declared.

No feature options declared.

Direct declarations from this checked source archive. They do not describe resolved transitive dependencies or executable contents.

Release evidence

Metadata
Validated
Artifacts
Validated
Provenance
Not run
Formal proof
Not run
Agent review
Not run

A digest identifies bytes. A matching digest does not establish publisher identity or general software safety.

The registry record does not declare ABI or required CPU features. Read package documentation.

Versions

Download activity

stubbi/math@0.4.0 · Exact version · Asm completed transfers

Download activity is unavailable. Missing observations do not establish zero downloads.

These observations are stale. The latest activity may be missing.

Transfers do not measure people, installations, suitability, or safety. Unreported delivery sources are outside this metric.