diff options
Diffstat (limited to 'pl/math/poly_sve_f64.h')
-rw-r--r-- | pl/math/poly_sve_f64.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pl/math/poly_sve_f64.h b/pl/math/poly_sve_f64.h new file mode 100644 index 000000000000..5fb14b3c1700 --- /dev/null +++ b/pl/math/poly_sve_f64.h @@ -0,0 +1,26 @@ +/* + * Helpers for evaluating polynomials on double-precision SVE input, using + * various schemes. + * + * Copyright (c) 2023, Arm Limited. + * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception + */ + +#ifndef PL_MATH_POLY_SVE_F64_H +#define PL_MATH_POLY_SVE_F64_H + +#include <arm_sve.h> + +/* Wrap SVE f64 helpers: evaluation of some scheme/order has form: + sv_[scheme]_[order]_f64_x. */ +#define VTYPE svfloat64_t +#define STYPE double +#define VWRAP(f) sv_##f##_f64_x +#define DUP svdup_f64 +#include "poly_sve_generic.h" +#undef DUP +#undef VWRAP +#undef STYPE +#undef VTYPE + +#endif |