src/simd/sve/sph.c file

SVE neighbor loops for the SPH density sum and pressure gradient.

Same kernels as the scalar path. VL-agnostic: the predicate covers the tail, so there is no scalar remainder. Indexed gathers replace the NEON scalar gather. SVE2 hardware runs this kernel; SVE2 adds nothing it needs.

Typedefs

using vm_vec = svfloat64_t
using vm_idx = svint64_t

Functions

static auto lanes(void) -> uint64_t
static auto sigma_of(const int dim, const int kernel) -> vm_float_t
static auto shape_f(const svbool_t pg, const vm_vec q, const int kernel) -> vm_vec
static auto shape_df(const svbool_t pg, const vm_vec q, const int kernel) -> vm_vec
auto vm_sph_density_sve(const vm_float_t* x, const vm_float_t* y, const vm_float_t* z, const vm_float_t* m, const int i, const int* neighbors, const int nn, const vm_float_t h, const int dim, const int kernel) -> vm_float_t
auto vm_sph_pressure_grad_sve(vm_float_t* gx, vm_float_t* gy, vm_float_t* gz, const vm_float_t* x, const vm_float_t* y, const vm_float_t* z, const vm_float_t* m, const vm_float_t* rho, const vm_float_t* p, const int i, const int* neighbors, const int nn, const vm_float_t h, const int dim, const int kernel) -> bool

Defines

#define VM_F_SUFFIX
#define vm_set1
#define vm_whilelt(a, b)
#define vm_add
#define vm_add_m
#define vm_sub
#define vm_mul
#define vm_div
#define vm_sqrt
#define vm_max
#define vm_cmp_lt
#define vm_cmp_gt
#define vm_cmp_le
#define vm_sel
#define vm_hsum
#define vm_ptrue
#define vm_ld_idx(pg, p)
#define vm_gather(pg, base, idx)