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

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

Build:
Build:
LAST BUILD BRANCH: fix/fixpnt-quire-resolve-saturates
DEFAULT BRANCH: master
Ran 10 Nov 2026 08:35PM 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 08:08PM UTC coverage: 89.028% (+0.005%) from 89.023%
42892310685

push

github

web-flow
feat(fixpnt): linear CORDIC for multiply and divide, on a unified CORDIC core (#2043)

Adds cordic::mul (linear rotation mode) and cordic::div (linear vectoring
mode) to the fixpnt CORDIC engine, with the same knobs as the circular
functions: an iteration count and a guard width.

The engine now runs Walther's unified iteration, written once:

  x <- x - m d (y >> i),  y <- y + d (x >> i),  z <- z - d alpha_i

with the geometry m (cordic::coordinates::circular, linear, hyperbolic) as
a template parameter of detail::step. The circular results are
bit-identical to main's (hashed over sin, cos, atan, atan2, hypot and polar
in six formats, at the defaults and at reduced guard and iteration counts).

mul and div scale both operands into [1/2, 1), so the error is relative to
the operands. The datapath carries every bit the result can need (under
Modulo, every bit of a wrapped product or quotient) plus guard bits.
Division by zero follows fixpnt's operator/.

Measured worst case against exact integer references: 0.53 ulp for mul and
0.50 ulp for div, over every pair of the 8-bit formats and samples up to
fixpnt<128,120>.

Adds docs/algorithmic-details/cordic.md: why CORDIC exists, the unified
recurrence and what m in the x update means geometrically, convergence,
gain, range reduction and errors, when to use it, and its history from
Volder (1956) and Walther (1971) to today.

Resolves #2040

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

58 of 59 new or added lines in 1 file covered. (98.31%)

61362 of 68924 relevant lines covered (89.03%)

10316714.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
99.51
-0.49% include/sw/universal/number/fixpnt/math/cordic.hpp
Jobs
ID Job ID Ran Files Coverage
1 42892310685.1 10 Nov 2026 08:35PM UTC 879
89.03
GitHub Action Run
Source Files on build 42892310685
  • Tree
  • List 879
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42892310685
  • 70a59163 on github
  • Prev Build on main (#42760759852)
  • Next Build on main (#42937098429)
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