universal v5.18.0
Permanent link:
cppdashboard.dev/r/2026/11/universal-v5-18-0Large collection of number systems providing custom arithmetic for mixed-precision algorithm development and optimization for AI, Machine Learning, Computer Vision, Signal Processing, CAE, EDA, control, optimization, estimation, and approximation.
Release notes
## [5.18.0] - 2026-11-19 **QA sweeps of posit, the tapered types, cfloat, the other floats, fixed-point, integer and rational; exact references for the verifiers; and NaturalNumber's NaNN.** 36 commits since v5.17.0, with 51 behaviour changes: * posit, bposit, takum and takum_log convert on the encoding and cast to integers by one rule; posit's fused operators round once and NaR propagates (#2047, #2050, #2073, #2074, #2081, #2082, #2101, #2108). * cfloat casts and conversions are exact or rounded once, its math past double runs in efloat, and its numeric_limits describe the encoding (#2051, #2090-#2093). * bfloat16, microfloat, mxblock, hfloat, dfloat and zfpblock fix NaN handling, rounding and their limits (#2066, #2085, #2086, #2099, #2102, #2109, #2110). * fixpnt and dfixpnt convert exactly, saturate every overflow and round their products and quotients (#2103, #2078, #2116, #2118, #2119). * The quire overflows instead of wrapping and resolves correctly for every type (#2095, #2114, #2120). * The random-operand verifiers take a reference type, with exact references for posit, cfloat, lns and the multi-doubles; lns + - exp exp2 are correctly rounded (#2121-#2130). * integer shifts arithmetically, converts exactly, and checks its documented Whole/Natural domains; rational saturates; NaturalNumber's all-zeros encoding is NaNN, Not a Natural Number (#2117, #2134, #2135, #2137, #2141). * universal_cast keeps the bits of dd, qd and wide cfloat casts, and regression tests no longer trace in CI (#2138, #2140). Known issue: fixpnt `cordic::atanh` on 8-bit layouts fails intermittently under MSVC (#2142). It is present since the CORDIC engines of v5.16.0. ### Behaviour changes - **posit**: posit-to-posit conversion rounds once on the encoding and saturates (was through double: imprecise past 53 bits, NaR or 0 outside double's range); integers convert into posits wider than 64 bits from their own bits, rounded once to the posit's precision (no longer through double); posit int/long/long long casts saturate and give the type's minimum for NaR; `numeric_limits<posit>` max_exponent is one larger, has_infinity and has_signaling_NaN are false and is_bounded is true; ulp(maxpos) is finite; operator>> no longer writes to std::cerr ([#2073](https://github.com/stillwater-sc/universal/pull/2073)) - **posit**: posit fam is correctly rounded and fma/fam/fmma work for every configuration; min, max, nextafter, nexttoward and copysign with NaR return NaR, and isinf(NaR) is false; fpclassify/isnormal of extreme posits are FP_NORMAL/true; fdp with a short vector or zero stride returns NaR ([#2074](https://github.com/stillwater-sc/universal/pull/2074)) - **dfixpnt**: dfixpnt conversion from double is exact (rounded once, ties away from zero), conversion to double and float is correctly rounded (ties to even), and a negative double that rounds to 0 gives +0; wide dfixpnt (ndigits > 308) now converts from double instead of failing to compile ([#2078](https://github.com/stillwater-sc/universal/pull/2078)) - **takum**: takum and takum_log convert integers from their own bits, rounded once to the destination's precision (integers above 2^53 no longer round through double first); integer casts truncate, saturate, and give the type's minimum for NaR instead of undefined behaviour; takum_log conversion from double is correctly rounded at every width, and to double/float where l is not exact in a double (`takum_log<57,3>` and up) ([#2081](https://github.com/stillwater-sc/universal/pull/2081)) - **bposit**: bposit integer casts truncate, saturate and give the type's minimum for NaR instead of undefined behaviour; bposit fdp_qc/fdp_stride/fdp return NaR for a zero stride, an index past a vector or a short y in every build; lns and dbns fdp_stride/fdp_qc take n as the index bound, like every other fdp header, instead of the product count ([#2082](https://github.com/stillwater-sc/universal/pull/2082)) - **mxblock**: mxint8 blocks use scale 2^(floor(log2(amax))…
Share this resource