Argon 0.1.0
Loading...
Searching...
No Matches
simde_fused.hpp File Reference

The single-precision fused multiply-add of the VFPv4 layer, for SIMDe on a host with FMA. More...

#include "arm_simd/helpers/simde_neon.hpp"
#include <cmath>
#include <cstddef>
#include <cstring>
Include dependency graph for simde_fused.hpp:

Go to the source code of this file.

Functions

template<typename V>
V neon::detail::fused_lanes (V a, V b, V c, float sign)
 a + sign * (b * c) per lane, one rounding; sign is +1 or -1 (negating b * c is exact).
float32x2_t neon::multiply_add_fused (float32x2_t a, float32x2_t b, float32x2_t c)
 Fused a + (b * c), one rounding.
float32x2_t neon::multiply_subtract_fused (float32x2_t a, float32x2_t b, float32x2_t c)
 Fused a - (b * c), one rounding.
float32x4_t neon::multiply_add_fused (float32x4_t a, float32x4_t b, float32x4_t c)
 Fused a + (b * c), one rounding.
float32x4_t neon::multiply_subtract_fused (float32x4_t a, float32x4_t b, float32x4_t c)
 Fused a - (b * c), one rounding.
float32x2_t neon::multiply_add_fused (float32x2_t a, float32x2_t b, float32_t c)
 a + b * c with one rounding, c broadcast to every lane.
float32x2_t neon::multiply_subtract_fused (float32x2_t a, float32x2_t b, float32_t c)
 a - b * c with one rounding, c broadcast to every lane.
float32x4_t neon::multiply_add_fused (float32x4_t a, float32x4_t b, float32_t c)
 a + b * c with one rounding, c broadcast to every lane.
float32x4_t neon::multiply_subtract_fused (float32x4_t a, float32x4_t b, float32_t c)
 a - b * c with one rounding, c broadcast to every lane.

Detailed Description

The single-precision fused multiply-add of the VFPv4 layer, for SIMDe on a host with FMA.

SIMDe's vfma/vfms on x86 are a multiply and an add, with two roundings, so the fused forms go lane by lane through std::fma, which a host compiled with FMA lowers to one fused instruction. arm_simd/neon/vfpv4.hpp is not used here: it declares half-precision forms SIMDe lacks.