tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
fma.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  etl
 

Functions

constexpr auto fma (double x, double y, double z) noexcept -> double
 Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.
 
constexpr auto fma (float x, float y, float z) noexcept -> float
 Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.
 
constexpr auto fma (long double x, long double y, long double z) noexcept -> long double
 Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.
 
constexpr auto fmaf (float x, float y, float z) noexcept -> float
 Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.
 
constexpr auto fmal (long double x, long double y, long double z) noexcept -> long double
 Computes (x*y) + z as if to infinite precision and rounded only once to fit the result type.