Skip to content

v2.3.0 – Naming RFC, Rearrangements, Scalar Forms & Immediates

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 27 Nov 20:31
· 97 commits to develop since this release
v2.3.0
8b98e4f

⚠️ Breaking changes (naming RFC)

  • Register types vd / vm: C vd_float32_t / vm_float32_t, C++ mipp::vd / mipp::vm, Object API mipp::Vd / mipp::Vm, conversions tovd / tovm.
  • Parameters and fields: vd0 / vm0 / vdsrc, fields .vd / .vm, halves of a group .lo / .hi.
  • Compact names: swap2, dupeven, ziplo, unziplo, bcast, slideup, zip / unzip, lo / hi.
  • Memory functions start with load / store: loadu_unzip, storeu_zip, storeu_compress, storeuf_compress, loadu_expand.
  • The C names of gather / scatter carry the unsigned index type.
  • sum and pack are removed: use hadd / hadds and ncvts(combine(a, b)).
  • Every macro and include guard of the headers is prefixed with MIPP_.

✨ New features

  • Lane rearrangements: reverse, rotate, zip / unzip, slide, bcast, dupeven / dupodd, swap2 and their _b128 variants; permute / permute2 / permute_b128; compress / expand / count; transpose / transpose_b128.
  • Complex numbers in the interleaved layout: cmul, cmulconj, cfmadd, conj, cnorm, cabs, cdiv.
  • More functions: any / all, signbit, copysign, xorsign, ncvts, rshiftl, roundeven, clamp, per-lane shifts, generic cosh / sinh on float32.
  • Scalar forms (_vs, _sv, _vsv, _vvs) of 42 functions, with C++ overloads such as mipp::sub(r, s).
  • Immediate arguments for the lane counts, lanes and shift counts: __builtin_constant_p dispatch in C, mipp::slide<2>(a, b), mipp::get<3>(r), mipp::lshift<4>(r) in C++.
  • C++17 permutations with a compile-time pattern: permute<P> / permute2<P>.
  • Gather / scatter with uint32 or uint64 indices for any data type.
  • Utilities in the three APIs: aligned memory (mipp_malloc, mipp::vector), dump / operator<<, reduce, transpose.
  • RVV half-vectors selectable at compile time: MIPP_RVV_LDIV_HW / _VL / _HYBRID.

🚀 Native implementations

  • SSE / AVX / AVX2: shifts, products, conversions, masked memory, 8/16-bit adds / subs.
  • AVX-512: masked variants, unsigned and 64-bit products, reductions.
  • NEON: trunc, 64-bit lanes on ARMv7.
  • SVE: logic, compares, shifts, conversions, predicated masked variants, gathers, swap2, wcvt / ncvt.
  • RVV: masked variants with the mask-undisturbed policy.
  • Constants and reinterpretations no longer count in the implementation level.

🐛 Fixes

  • sin / cos / tan are accurate for any input (libm fallback for large arguments).
  • cmpneq is true when an element is NaN (AVX, AVX-512).
  • abs / neg of the most negative integer without undefined behavior.
  • Modulo hadd on 8/16-bit lanes (AVX2, AVX-512).
  • RVV rounding and overflow of the gather / scatter byte offsets.
  • Unaligned SSE / AVX loads and stores.
  • get_k on the scalar ISA.
  • Alignment of the C register types on ARMv7.
  • Workarounds for GCC 13, 14 and 15 bugs.

🧪 Tests

  • Tolerances derived from error bounds, special values, per-input domains.
  • -N sets the iterations of every test.

📚 Documentation

  • One page per function, with its scalar forms, masked prototypes, edge cases, accuracy and domains.
  • New pages: why MIPPv2, when Highway is a better fit, migrating from MIPPv1, naming conventions.
  • API Explorer: immediates, movable Compare ISAs view, Algorithm modal rebuilt from the generated headers, Godbolt links in C.

📦 Assets

The generated headers are attached as mipp-v2.3.0-headers.zip and mipp-v2.3.0-headers.tar.gz (the include/ directory, ready to use).

Full Changelog: v2.2.0...v2.3.0