Skip to content

v0.1.0-alpha.4 (Sprint 3: Phase 3 Arithmetic & Set 1 Math)

Pre-release
Pre-release

Choose a tag to compare

@Mr-Kumar-Abhishek Mr-Kumar-Abhishek released this 21 Nov 20:55
· 13 commits to master since this release

Sprint 3 pre-release (v0.1.0-alpha.4 / Phase 3 arithmetic + Set 1 elementary math + strict Clippy CI).

Highlights

  • Implemented src/arithmetic.rs (US-09 & US-10, 0 unsafe):
    • Binary floating arithmetic OP1 ops: ADD, SUB, ADDAB, ABADD, SUBAB, ABSUB, MPY, NGMPY, DIV, NGDIV
    • SpeedCo I manual semantics (Sec. 3-3..3-4): exact cancellation exponent preservation without shifting, > 76 decimal exponent difference rejection (ExponentDifferenceTooLarge), sub-half product doubling (|Fa*Fb| < 0.5 -> exponent - 1), 35-bit unrounded add/sub/multiply truncation, 35-bit rounded quotient, and DivideCheck stop on zero divisor
    • Set 1 elementary mathematical functions (SQRT, SINE, ARTAN, EXP, LN) matching SpeedCo I Appendices 1–2 accuracy guarantees and edge quirks (SQRT negative/zero F -> ceil(E/2), SINE zero/large n -> +7, LN negative F -> |F| and zero F -> 1/2)
  • Resolved Clippy & CI Hardening: Enabled cargo clippy --all-targets -- -D warnings on Linux CI (added impl std::ops::Neg for SpeedFloat while keeping .neg()) and enabled phase_3_arithmetic_math Debug & Release test execution.
  • Verified in Linux CI (Run #44948301907): 37 passing tests (32/66 TDD + 5/5 benchmarks): 10/10 phase_3_arithmetic_math, 10/10 phase_2_parser, 11/11 phase_1_core_types, 5/5 bench_speedcoding (Debug & Release), 1/1 src/lib.rs, 0 Clippy/compiler/rustdoc warnings.
  • Assets (x86_64-pc-windows-msvc Release): speedcoding.exe, libspeedcoding.rlib, LICENSE-MIT, LICENSE-APACHE, NOTICE, and SHA256SUMS.txt (excludes 102632810-05-01-acc.pdf).