Expand description
IEEE 754 strict floating-point utilities. IEEE 754 float rules enforced by the parity engine.
Until vyre IR gains full float variants, this module acts as a strict guard: any code path that would require float semantics returns a deterministic error rather than falling back to undefined or driver-dependent behavior. When float support lands, this module will become the source of truth for rounding mode, NaN propagation, and subnormal handling that the conform gate checks.
Constants§
- BACKEND_
ELEMENTARY_ F32_ ULP_ BUDGET - Maximum accepted backend-vs-reference error for f32 programs without transcendental operations under the default parity policy.
- BACKEND_
TRANSCENDENTAL_ ULP_ BUDGET - Maximum accepted backend-vs-reference error for programs containing f32 transcendental operations.
- REFERENCE_
TRANSCENDENTAL_ ULP_ BUDGET - Maximum accepted reference-oracle error against correctly rounded f32 transcendental results.
Functions§
- canonical_
acos - Deterministic f32 arc cosine used by the CPU parity oracle.
- canonical_
asin - Deterministic f32 arc sine used by the CPU parity oracle.
- canonical_
atan - Deterministic f32 arc tangent used by the CPU parity oracle.
- canonical_
cos - Deterministic f32 cosine used by the CPU parity oracle.
- canonical_
cosh - Deterministic f32 hyperbolic cosine used by the CPU parity oracle.
- canonical_
exp - Deterministic f32 exponential used by the CPU parity oracle.
- canonical_
exp2 - Deterministic f32 base-2 exponential used by the CPU parity oracle.
- canonical_
f32 - Flush subnormal
f32values to signed zero, preserving the sign bit. - canonical_
inverse_ sqrt - Deterministic f32 inverse square root used by the CPU parity oracle.
- canonical_
log - Deterministic f32 natural logarithm used by the CPU parity oracle.
- canonical_
log2 - Deterministic f32 base-2 logarithm used by the CPU parity oracle.
- canonical_
reciprocal - Deterministic f32 reciprocal used by the CPU parity oracle.
- canonical_
sin - Deterministic f32 sine used by the CPU parity oracle.
- canonical_
sinh - Deterministic f32 hyperbolic sine used by the CPU parity oracle.
- canonical_
sqrt - Deterministic f32 square root used by the CPU parity oracle.
- canonical_
tan - Deterministic f32 tangent used by the CPU parity oracle.
- canonical_
tanh - Deterministic f32 hyperbolic tangent used by the CPU parity oracle.
- canonical_
ulp_ distance - Compute the deterministic ULP distance after vyre f32 canonicalization.
- pending_
float_ types - Return the canonical float-pending error.