eos.c file
AVX2 batched ideal and stiffened gas.
8-wide f32 / 4-wide f64. A chunk with a bad density or negative (c^2) falls back to the scalar call from that item, so a failure leaves the same items unwritten as the scalar batch.
Functions
-
static auto load_s(const vm_
float_ t* base, const int stride, const int k) -> vm_ vec -
static auto any_mask(const vm_
vec m) -> 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_avx2(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_avx2(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