array.c file
NEON elementwise array kernels.
f32 is 4-wide, f64 is 2-wide. Unaligned loads and stores. Exact alias is safe because each element is written in order. vm_ is a multiply then an add, not a fused multiply-add.
Typedefs
- using vec_t = float64x2_t
Functions
-
void vm_array_add_neon(vm_
float_ t* res, const vm_ float_ t* a, const vm_ float_ t* b, const int n) -
void vm_array_sub_neon(vm_
float_ t* res, const vm_ float_ t* a, const vm_ float_ t* b, const int n) -
void vm_array_mul_neon(vm_
float_ t* res, const vm_ float_ t* a, const vm_ float_ t* b, const int n) -
void vm_array_div_neon(vm_
float_ t* res, const vm_ float_ t* a, const vm_ float_ t* b, const int n) -
void vm_array_fma_neon(vm_
float_ t* res, const vm_ float_ t* a, const vm_ float_ t* b, const vm_ float_ t* c, const int n) -
void vm_axpy_neon(vm_
float_ t* y, const vm_ float_ t alpha, const vm_ float_ t* x, const int n) -
void vm_rsqrt_array_neon(vm_
float_ t* res, const vm_ float_ t* x, const int n)