Shared-Basis 128-Bit Fixed-Point GPU Extraction of Six Fundamental Logarithms at the 6-Trillionth Bit on a Single Consumer Laptop
Extracting isolated hexadecimal digits of mathematical constants at multi-trillion-bit depths via Bailey-Borwein-Plouffe (BBP) and Bellard formulas requires O(1) memory, yet faces two severe bottlenecks on modern consumer GPUs: (i) the 1:64 double-precision (FP64) throughput penalty on consumer architectures such as NVIDIA Ada Lovelace (SM 8.9), which makes IEEE-754 double lose accuracy past 10^10 hex digits and makes double-double (106-bit) kernels stall on FP64 pipelines; and (ii) the multiplicative cost of running separate sweeps for distinct constants. We present WERR-Pi / WERR-Log6, a Zero-FP64, zero-hardware-division 128-bit fixed-point CUDA engine combining unified Möller-Granlund reciprocal precomputation (invert_norm64), top-5-bit seeded Montgomery modular exponentiation (pow2_mod_odd_v4), and a four-basis algebraic folding scheme (A, B, C, D) that extracts six fundamental natural logarithms — ln(2), ln(3), ln(5), ln(6), ln(7), and ln(10) — simultaneously in a single sweep requiring only (5/6)b modular exponentiations at bit offset b. On a single consumer laptop (NVIDIA GeForce RTX 4060 Laptop GPU, 81.1 W average, 32 KB constant VRAM, 0 B scratch disk), WERR-Log6 extracts and independently verifies 20–21 hexadecimal digits (80–84 consecutive bits) of all six logarithms at bit offset b = 6,000,000,000,000 (hex_pos = 1.5e12, equivalent to ~1.806e12 decimal depth) across two independent 5-trillion-operation passes (primary + shifted+1) in 80.10 min total (2.104e9 modexps/s primary, 0.1083 kWh total GPU energy). A companion Bellard run extracts 27 verified hex digits (108 bits) of pi at bit 4e11 in 118.13 s (2.370e9 modexps/s). We explicitly distinguish isolated BBP-type spigot extraction from sequential full-expansion computation, and provide all cryptographically sealed 128-bit JSONL checkpoints (203+203 chunks), 2,306 NVML telemetry samples, and a 5-layer zero-trust verification suite whose CPU-only subset audits all 10 SHA-256 sealed artifacts in <1 second without a GPU. Source code (BSL-1.1, 100% free for academic/non-commercial research, converts to Apache-2.0 on 2030-01-01) and live CI: https://github.com/Lexovian/werrpi
Authors
- Zerrin Dağlı (ORCID: https://orcid.org/0000-0001-9490-6425)
- Daghan Dagli (ORCID: https://orcid.org/0009-0003-2492-8313)
- Volkan Dağlı (ORCID: https://orcid.org/0009-0000-1587-8703)
Institutions
- Toros University (TR)
- Anadolu University (TR)
- Mersin Üniversitesi (TR)
- Cukurova University (TR)
Publication Details
- Journal
- Zenodo (CERN European Organization for Nuclear Research)
- Published
- 2026-11-29
- DOI
- https://doi.org/10.5281/zenodo.24655506
- Primary Topic
- Numerical Methods and Algorithms
- Type
- preprint