• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stillwater-sc / universal / 39733288701
89%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 22 Oct 2026 06:34AM UTC
Jobs 1
Files 761
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Oct 2026 06:20AM UTC coverage: 87.974% (+0.005%) from 87.969%
39733288701

push

github

web-flow
perf(efloat): sin/cos/tan on the fixed-point series engine, tapered blocks (#1791)

The versine kernel of sin/cos/tan ran every term and doubling as a rounded
efloat operation, 77-92% of sin's time: 2.1-3.3x MPFR at 128 bits, 1.5x at 8192.

- fixed_series (was exp_fixed): one engine for sum_k (+-1)^k s^k / (d(1)...d(k)),
  d(t) = t for exp, (2t+1)(2t+2) for the versine.
- Tapered blocks: block b scaled by T_(bm) < 2^-G_b runs on the top n - q_b
  limbs. exp at 8192 bits 1.6x -> 1.1x MPFR, at 2048 1.1x -> 0.8x; exp halving
  target re-measured, T = 0.25 sqrt(F).
- Fixed-point versine: v = y^2 W(z)/2, W = 1 - z/12 + ... summed on the engine
  (tiny r keeps its relative precision); doublings V' = V - V^2/2^(F+E+1) on a
  scaled V, one square each; T = 0.22 sqrt(F).
- Reduction below 2^40 takes k = round(x 2/pi) from double instead of dividing
  by pi/2 at the working precision.
- round_near cuts for tiny x were ~2 bits conservative: now 2 scale(x) < -P - 3
  (sin) and < -P - 4 (cos, tan); sin(1e-20) at 128 bits 0.51 -> 0.125 us.

sin/cos/tan vs MPFR: 0.9-1.1x up to 2048 bits, 1.1-1.2x at 8192 (were
2.1-3.3x at 128, 1.5x at 8192); 0.3-1.4x over arguments 1e-20..100 at 512 bits
and up. trig_working 30.5-55 bits inside trig_error_bits against MPFR. New
elastic/efloat/math/trig_kernel.cpp checks the versine and trig_working bounds
against plain Taylor series, near half-integer multiples of pi/2, and tiny x
either side of the cuts in all modes; 13 of 15 kernel mutations fail it (the
others perf-only or caught by exp_kernel). mpfr_check draws trig arguments on
both sides of the cuts. mpfr_check 1 all 8192: 0 wrong; gcc and clang pass;
ASan/UBSan clean.

Resolves #1790

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

112 of 112 new or added lines in 2 files covered. (100.0%)

2 existing lines in 1 file now uncovered.

53491 of 60803 relevant lines covered (87.97%)

9174256.36 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
91.24
-0.92% include/sw/universal/number/efloat/math/truncate.hpp
Jobs
ID Job ID Ran Files Coverage
1 39733288701.1 22 Oct 2026 06:34AM UTC 761
87.97
GitHub Action Run
Source Files on build 39733288701
  • Tree
  • List 761
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39733288701
  • 80c6ea3b on github
  • Prev Build on main (#39720248990)
  • Next Build on main (#39784060943)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc