First-order runtime dispatch for byte-sized posits #
Byte-sized posits have exhaustive tables, direct packed-word arithmetic, width-generic dyadic
arithmetic, and the reference specification. The general planner stores functions in candidate
records, but projecting the winner through that representation leaves an indirect closure call in
otherwise monomorphic UInt8 arithmetic.
This module runs the same deterministic comparison over a compact tag and matches the result to a
named first-order kernel. Closed public formats hoist the tag and lazy-table resource as static
values, preserving shared memoization without closure dispatch. Correctness and planner-agreement
proofs live in ByteDispatch.Proof.
Planner metadata represented by one byte-kernel tag.
Instances For
Compare two byte-kernel tags using the shared planner ordering.
Instances For
Select a byte kernel without constructing a list or retaining executable closures.
The order is table, packed word, then width-generic dyadic arithmetic, seeded by the reference baseline. This is the same ordering used by the certified candidate portfolios.
Instances For
Metadata-only candidates corresponding exactly to the tag selector.
Instances For
Direct operation entry points #
Execute byte-sized posit addition from a first-order choice tag.
Instances For
Execute policy-selected byte-sized posit addition through a first-order kernel.
Instances For
Execute byte-sized posit subtraction from a first-order choice tag.
Instances For
Execute policy-selected byte-sized posit subtraction through a first-order kernel.
Instances For
Execute byte-sized posit multiplication from a first-order choice tag.
Instances For
Execute policy-selected byte-sized posit multiplication through a first-order kernel.
Instances For
Execute byte-sized posit division from a first-order choice tag.
Instances For
Execute policy-selected byte-sized posit division through a first-order kernel.
Instances For
Execute byte-sized posit square root from a first-order choice tag.
Instances For
Execute policy-selected byte-sized posit square root through a first-order kernel.
Instances For
Execute byte-sized posit FMA from a first-order choice tag.
Instances For
Execute policy-selected byte-sized posit FMA through a first-order kernel.