← board

Bignum library — arbitrary-precision integers (deterministic test app)

Goal

A BigInt unit: signed arbitrary-precision integers stored as an array of machine-word limbs. Schoolbook algorithms first (correctness over speed); Karatsuba etc. optional later.

Surface (sketch)

Coverage

dynamic arrays (limbs) · carry/borrow Int64 + UInt64 math (stresses 64-bit on 32-bit targets) · managed-string decimal format/parse · operator-ish routines. Integer-deterministic by construction.

Acceptance / oracle

Notes

Constraints

Own .pas unit; FPC-ish naming; no port; no self-host / cross regression.

Log