xref: /freebsd/contrib/arm-optimized-routines/pl/math/poly_scalar_f32.h (revision 4fefe1b763573c873bf3dbf3b6f28c22de0ffada)
1 /*
2  * Helpers for evaluating polynomials on siongle-precision scalar input, using
3  * various schemes.
4  *
5  * Copyright (c) 2023, Arm Limited.
6  * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception
7  */
8 
9 #ifndef PL_MATH_POLY_SCALAR_F32_H
10 #define PL_MATH_POLY_SCALAR_F32_H
11 
12 #include <math.h>
13 
14 /* Wrap scalar f32 helpers: evaluation of some scheme/order has form:
15    [scheme]_[order]_f32.  */
16 #define VTYPE float
17 #define FMA fmaf
18 #define VWRAP(f) f##_f32
19 #include "poly_generic.h"
20 #undef VWRAP
21 #undef FMA
22 #undef VTYPE
23 
24 #endif
25