Library

universal v5.13.0

Versionv5.13.0
Stars★ 505
Released2026-10-30

Large 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.13.0] - 2026-10-30

### Behaviour changes

- **posit**: posit trunc/round/floor/ceil/fmod/remainder/frac are exact or correctly rounded at every nbits (they went through double); posit isinteger() is false for non-integers (it was always true), so ipow of a non-integer posit returns 0 ([#1869](https://github.com/stillwater-sc/universal/pull/1869))
- **posit**: posit exp, exp2, exp10, expm1, log, log2, log10, log1p and hypot are correctly rounded at every nbits and computed without double; results change for posits wider than double holds, exp past the range is maxpos (it was NaR), log(0) is NaR; up to 32 bits rounding is unchanged in 400k samples, and they are slower up to 64 bits (0.65-0.8 us) ([#1870](https://github.com/stillwater-sc/universal/pull/1870))
- **posit**: posit sin, cos, tan, asin, acos, atan, atan2, cot, sec, csc, sinh, cosh, tanh, asinh, acosh, atanh, pow, erf and erfc are correctly rounded at every nbits without double, with posit saturation instead of NaR on overflow, and 4-70x slower up to 64 bits (erf the most); tgamma and lgamma are new ([#1871](https://github.com/stillwater-sc/universal/pull/1871))
- **efloat**: efloat/efloat_mpn.hpp and namespace efloat_mpn are gone (use internal/limbs/limb_kernels.hpp and limb_kernels), and EFLOAT_MPN_NO_ASM is no longer read (use UNIVERSAL_LIMB_KERNELS_NO_ASM) ([#1873](https://github.com/stillwater-sc/universal/pull/1873))
- **posit**: posit ipow(a, b) is removed; use pow(a, int(b)), which is correctly rounded ([#1874](https://github.com/stillwater-sc/universal/pull/1874))

### Added

- **posit**: Trunc, round, floor, ceil, fmod, remainder and frac without double, at any nbits  ([#1869](https://github.com/stillwater-sc/universal/pull/1869)) by @Ravenwater
- **posit**: Correctly rounded exp, log and hypot families, computed in efloat at any nbits  ([#1870](https://github.com/stillwater-sc/universal/pull/1870)) by @Ravenwater
- **posit**: Correctly rounded trigonometric, hyperbolic, pow, error and gamma functions, computed in efloat  ([#1871](https://github.com/stillwater-sc/universal/pull/1871)) by @Ravenwater

### Changed

- **efloat**: Remove the deprecated efloat_mpn header and EFLOAT_MPN_NO_ASM  ([#1873](https://github.com/stillwater-sc/universal/pull/1873)) by @Ravenwater
- **posit**: Retire ipow; pow(a, int) is the integer power  ([#1874](https://github.com/stillwater-sc/universal/pull/1874)) by @Ravenwater

### Documentation

- **posit**: The math library, correctly rounded at every nbits without double  ([#1872](https://github.com/stillwater-sc/universal/pull/1872)) by @Ravenwater

Share this resource


Discovered 2026-10-30 Source GitHub Archive 2026-10 →