xref: /freebsd/contrib/arm-optimized-routines/math/aarch64/sve/sv_poly_f64.h (revision f3087bef11543b42e0d69b708f367097a4118d24)
1 /*
2  * Helpers for evaluating polynomials on double-precision SVE input, using
3  * various schemes.
4  *
5  * Copyright (c) 2023-2024, Arm Limited.
6  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
7  */
8 
9 #ifndef MATH_POLY_SVE_F64_H
10 #define MATH_POLY_SVE_F64_H
11 
12 #include <arm_sve.h>
13 
14 /* Wrap SVE f64 helpers: evaluation of some scheme/order has form:
15    sv_[scheme]_[order]_f64_x.  */
16 #define VTYPE svfloat64_t
17 #define STYPE double
18 #define VWRAP(f) sv_##f##_f64_x
19 #define DUP svdup_f64
20 #include "sv_poly_generic.h"
21 #undef DUP
22 #undef VWRAP
23 #undef STYPE
24 #undef VTYPE
25 
26 #endif
27