macro_rules! horner_fma {
($x:expr; [$($coeffs:expr),+ $(,)?]) => { ... };
($x:expr; $a:expr $(,)?) => { ... };
($x:expr; $a:expr, $($rest:expr),+ $(,)?) => { ... };
(let $x:expr; $($t:tt)*) => { ... };
}Expand description
Evaluate a polynomial with Horner’s method.
Same as horner!, but uses “fused multiply-add” instructions.
The coefficients and the point of evaluation must be of a type which implements num_traits::MulAdd.