Repository navigation
v2.3.0 – Naming RFC, Rearrangements, Scalar Forms & Immediates
Pre-release
Pre-release
⚠️ Breaking changes (naming RFC)
- Register types
vd/vm: Cvd_float32_t/vm_float32_t, C++mipp::vd/mipp::vm, Object APImipp::Vd/mipp::Vm, conversionstovd/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/scattercarry the unsigned index type. sumandpackare removed: usehadd/haddsandncvts(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,swap2and their_b128variants;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, genericcosh/sinhon float32. - Scalar forms (
_vs,_sv,_vsv,_vvs) of 42 functions, with C++ overloads such asmipp::sub(r, s). - Immediate arguments for the lane counts, lanes and shift counts:
__builtin_constant_pdispatch 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
uint32oruint64indices 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/tanare accurate for any input (libm fallback for large arguments).cmpneqis true when an element is NaN (AVX, AVX-512).abs/negof the most negative integer without undefined behavior.- Modulo
haddon 8/16-bit lanes (AVX2, AVX-512). - RVV rounding and overflow of the gather / scatter byte offsets.
- Unaligned SSE / AVX loads and stores.
get_kon 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.
-Nsets 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