src/simd/avx2/batch3.c file

AVX2 batch3: strided 3×3 multiply, inverse, and Voigt-6 ddot.

Items are processed 8-wide (f32) or 4-wide (f64). Strided loads use gather; stores are scalar. Polar stays on mat3_polar.

Typedefs

using vm_vec = __m256d

Functions

static auto load_e(const vm_float_t* base, const int stride, const int k, const int e) -> vm_vec
static void store_e(vm_float_t* base, const int stride, const int k, const int e, const vm_vec v)
static auto any_le(const vm_vec v, const vm_vec s) -> int
auto vm_batch3_mul_avx2(vm_float_t* C, const int c_stride, const vm_float_t* A, const int a_stride, const vm_float_t* B, const int b_stride, const int n) -> bool
auto vm_batch3_inverse_avx2(vm_float_t* C, const int c_stride, const vm_float_t* A, const int a_stride, const int n) -> bool
auto vm_batch3_ddot_avx2(vm_float_t* d, const vm_float_t* a, const int a_stride, const vm_float_t* b, const int b_stride, const int n) -> bool

Defines

#define VM_LANES
#define vm_set1
#define vm_add
#define vm_sub
#define vm_mul
#define vm_div
#define vm_max
#define vm_and
#define vm_cmp_le(a, b)
#define vm_blend
#define vm_abs(v)