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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 10 Nov 2026 05:41AM UTC
Jobs 1
Files 879
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

10 Nov 2026 05:13AM UTC coverage: 89.023% (+0.02%) from 89.0%
42760759852

push

github

web-flow
feat(fixpnt): circular CORDIC engine for sin, cos, atan, atan2 and hypot (#2038)

Adds namespace cordic to fixpnt: sincos, sin and cos in rotation mode, and
atan2, atan, hypot and polar in vectoring mode. It models a shift-and-add
CORDIC unit in the type's own arithmetic, with an iteration count (runtime
argument) and a guard width (first template argument). It is correct to the
full width of the type, past the 53 bits the double path carries.

Per the decision on the issue (option a), the default sin/cos/atan/atan2/hypot
keep computing through double; their headers now document the 53-bit limit
and point to the engine.

- Datapath: a wider Modulo fixpnt with g guard bits and the integer bits the
  K growth needs. Rotation uses rbits + g fraction bits and vectoring nbits +
  1 + g. Arithmetic shifts truncate. The result is rounded to nearest once, at
  the end, then follows the type's Saturate or Modulo behaviour.
- Range reduction by pi/2, chosen at compile time: skipped for formats that
  hold only [-1, 1); otherwise pi/2 carries the quotient's integer bits.
- Vectoring scales the inputs so the larger lies in [1/2, 1), then rotates the
  left half-plane by -+pi/2. Its inputs are nbits + 2 bits, so atan(x) can
  hold 1 = 2^nbits when rbits == nbits.
- Constants: atan(2^-i), 1/K_n for every n, pi/2 and 2/pi. They come from
  series in fixpnt arithmetic 16 bits wider than the datapath, cached per
  type.

The defaults are g = ceil(log2(rbits + 8)) + 2 and n = rbits + g. With them,
every result is within 1 ulp. The measured worst case is 0.62 ulp: every
encoding up to 16 bits, every pair of the 8-bit formats, and samples up to
fixpnt<128,120> against qd. The error halves per iteration until the guard
bits run out.

Resolves #2015

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

158 of 158 new or added lines in 1 file covered. (100.0%)

4 existing lines in 2 files now uncovered.

61317 of 68878 relevant lines covered (89.02%)

10168433.54 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
85.93
-0.3% include/sw/universal/number/qd/qd_impl.hpp
2
34.7
-0.63% include/sw/universal/verification/test_suite_randoms.hpp
Jobs
ID Job ID Ran Files Coverage
1 42760759852.1 10 Nov 2026 05:41AM UTC 879
89.02
GitHub Action Run
Source Files on build 42760759852
  • Tree
  • List 879
  • Changed 6
  • Source Changed 2
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42760759852
  • f66c2cb9 on github
  • Prev Build on main (#42729690969)
  • Next Build on main (#42892310685)
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