Skip to content

My Intrinsics Plus Plus MIPPv2

Portable, zero-overhead SIMD computing for modern C and C++. Write once, vectorize everywhere across x86, ARM, and RISC-V targets with a guaranteed 4-level fallback engine.

x86 SSE · AVX · AVX-512 ARM NEON · SVE RISC-V RVV 1.0 Standards C11 · C++11 Overhead 0% Fully Inlined

Next-Gen ISAs & Scalable Vectors

Native support for AVX-512, ARM SVE, and RISC-V RVV. Advanced features include register grouping (LMUL/LDIV up to x8/d2), full vector masking, and an auto-generated, future-proof codebase. Easily extensible to new ISAs.

Three APIs, One Engine

Choose your paradigm: the C API (mipp_add_float32, C11) for C codebases and embedded targets; the generic C++ Functional API (mipp::add(va, vb)) for HPC algorithms; or the expressive C++ Object API (va + vb) with full operator overloading.

Fallback Guarantee

Every function compiles on every target for every datatype it supports, through a deterministic 4-level fallback engine: L0 (Native Hardware) → L1 (Dedicated Emulation) → L2 (Generic Emulation) → L3 (Scalar Fallback). No missing-instruction compilation errors (see the known limitations).

Zero-Overhead & Header-Only

No compilation, no external dependencies, and no linking required. Simply add include/ to your include path and include <mipp.h>, <mipp.hpp>, or <mipp_obj.hpp>: code inlines directly into bare-metal assembly with zero runtime penalty.

See how MIPP compares to Google Highway, xsimd, Eve, and auto-vectorization →


Supported Instruction Sets & Types

Instruction Set Architectures (ISAs)

Architecture Family Target Extensions Hardware Vector Width
x86 / x86-64 SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2 128 bits
x86 / x86-64 AVX, AVX2, AVX2+FMA (AVX-VNNI, AVX-VNNI-INT8, AVX-VNNI-INT16, AVX10.2 when enabled) 256 bits
x86 / x86-64 AVX-512F, AVX-512BW, AVX-512DQ (VL, CD, VBMI, VBMI2, VNNI, BITALG, VPOPCNTDQ, AVX10.2 when enabled) 512 bits
ARM (AArch32 / AArch64) NEON (ARMv7, ARMv8-A; DotProd and FCMA when enabled) 128 bits
ARM (AArch64) SVE (SVE2 when enabled) Fixed / Configurable compile-time vector length
RISC-V RVV 1.0 Fixed / Configurable VLEN (\(\ge 128\text{ bits}\))
Generic Scalar fallback Configurable width

Supported Datatypes

MIPP supports 10 fundamental numeric data types across all vector abstractions:

  • Floating-Point: float32_t, float64_t
  • Signed Integer: int8_t, int16_t, int32_t, int64_t
  • Unsigned Integer: uint8_t, uint16_t, uint32_t, uint64_t

Most functions take the 10 datatypes; some only a subset (e.g. sqrt and exp only the floating-point types, popcount only the integer types).


Documentation Overview

  • Why MIPPv2: Architectural evolution, technical relevance, and comparison with other SIMD wrappers (Highway, xsimd, Eve).
  • Getting Started: Header integration, compiler flags, and a 5-minute tutorial across the C, C++ Functional, and C++ Object APIs.
  • Programming Model: In-depth exploration of the C, C++ Functional, and C++ Object APIs.
  • Vector Types & LMUL: Vector representations, element counts (mipp::N<T, LMUL>()), register multipliers, half-vectors and type conversions.
  • Memory & Alignment: Alignment constraints, load/store primitives, and gather/scatter memory access.
  • Masking Semantics: Mask generation, mask conversion, and execution variants (unmasked, maskm, maskz, masks).
  • Scalar Forms: Functions that take a scalar instead of a vector operand (mipp::sub(a, s), mipp::fmadd(a, s, c)).
  • Rearrangements: Moving lanes inside a register or between two registers: reverse, interleave, slide, permute, transpose.
  • Complex Numbers: Complex arithmetic on float32 / float64 registers, in the interleaved or the split layout.
  • Headers & Compile Time: Header tree, monolithic / per-function / fine-grained inclusion, and measured compile times.
  • Implementation Levels: The 4-level fallback engine explained from an application performance standpoint.
  • Migrating from MIPPv1: What changes in depth, the functions that keep their name and change their result, and the correspondence tables.
  • API Explorer: Interactive catalog with instant search, reverse vendor intrinsic lookup, and switching between the three APIs.
  • Specifications: Complete function prototypes, mathematical descriptions, and target ISA capability matrices.
  • Developer Guide: Generation pipeline, setup, and tutorials to add a function, an implementation or an ISA.