src/simd/neon/eos.c file

NEON batched ideal and stiffened gas.

4-wide f32 / 2-wide f64. No gather; values are packed scalar. A bad chunk falls back to the scalar call from that item.

Functions

static auto load_s(const vm_float_t* base, const int stride, const int k) -> vm_vec
static auto any_le_zero(const vm_vec v) -> int
static auto any_lt_zero(const vm_vec v) -> int
static auto ideal_tail(vm_float_t* p, vm_float_t* c, const vm_ideal_gas* eos, const vm_float_t* rho, const int rho_stride, const vm_float_t* e, const int e_stride, const int from, const int n) -> bool
static auto stiff_tail(vm_float_t* p, vm_float_t* c, const vm_stiff_gas* eos, const vm_float_t* rho, const int rho_stride, const vm_float_t* e, const int e_stride, const int from, const int n) -> bool
auto vm_eos_ideal_n_neon(vm_float_t* p, vm_float_t* c, const vm_ideal_gas* eos, const vm_float_t* rho, const int rho_stride, const vm_float_t* e, const int e_stride, const int n) -> bool
auto vm_eos_stiffened_n_neon(vm_float_t* p, vm_float_t* c, const vm_stiff_gas* eos, const vm_float_t* rho, const int rho_stride, const vm_float_t* e, const int e_stride, const int n) -> bool

Defines

#define VM_LANES
#define vm_set1
#define vm_mul
#define vm_sub
#define vm_add
#define vm_div
#define vm_sqrt
#define vm_load
#define vm_store