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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 11 Nov 2026 02:31AM UTC
Jobs 1
Files 880
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

11 Nov 2026 02:08AM UTC coverage: 89.08% (+0.02%) from 89.064%
42943925001

push

github

web-flow
feat(dfixpnt): decimal CORDIC for sin, cos, atan, atan2 and hypot (#2045)

Adds a decimal CORDIC engine for dfixpnt in namespace cordic, the decimal
counterpart of the binary fixpnt engine: sincos, sin, cos (rotation) and
atan2, atan, hypot, polar (vectoring), with an iteration count in digit
positions and a guard-digit count a designer can set.

- Fixed-count, constant-gain form (decided with the maintainer): position 0
  is one rotation by +-pi/4, every position j >= 1 is nine rotations by
  +-atan(10^-j). Every rotation is taken, so the gain is a constant per
  position count, K -> 1.4796485628..., and sin and cos come out directly:
  no division or decimal sqrt. The range is 1.7824130..., and the error
  falls one decimal digit per position.
- Sign-magnitude: the engine works on |theta|, |x|, |y| and applies signs
  last, so sin and atan2 are exactly odd and cos exactly even.
- The registers (decimal_register) have exactly the arithmetic of a BCD
  Modulo dfixpnt, one byte per digit; verified bit-identical to a dfixpnt
  datapath over six formats, and 6 to 14 times faster. The engine reads and
  writes digits, so BCD, BID and DPD agree digit for digit.
- Constants from dfixpnt series 8 digits wider; 1/K_n by a Newton
  reciprocal square root that multiplies only.
- cordic::auto_guard is now shared between the binary and decimal engines
  behind SW_UNIVERSAL_CORDIC_AUTO_GUARD.

Measured worst case 0.54 ulp over every value of the formats up to 6
digits and samples up to dfixpnt<50,40>, against double and qd.

Resolves #2042


The header includes dfixpnt/core.hpp, so it stands alone (CodeRabbit).

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

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

20 existing lines in 2 files now uncovered.

61849 of 69431 relevant lines covered (89.08%)

10874400.28 hits per line

Coverage Regressions

Lines Coverage ∆ File
17
91.7
-5.9% include/sw/universal/number/dfixpnt/dfixpnt_impl.hpp
3
97.67
-0.19% include/sw/universal/number/cfloat/cfloat_impl.hpp
Jobs
ID Job ID Ran Files Coverage
1 42943925001.1 11 Nov 2026 02:31AM UTC 880
89.08
GitHub Action Run
Source Files on build 42943925001
  • Tree
  • List 880
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42943925001
  • 5115043f on github
  • Prev Build on main (#42937098429)
  • Next Build on main (#43070836172)
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