E.V.E
v2023.02.15
Loading...
Searching...
No Matches
◆
two_sub
auto eve::two_sub =
functor
<two_sub_t>
inline
constexpr
Header file
#include <eve/module/core.hpp>
Callable Signatures
namespace
eve
{
// Regular overload
constexpr
auto
two_sub
(
floating_value
auto
x,
floating_value
auto
y)
noexcept
;
//1
constexpr
auto
two_sub
[raw](
floating_value
auto
x,
floating_value
auto
y)
noexcept
;
//2
// Semantic options
constexpr
auto
two_sub
[pedantic](
floating_value
auto
x,
floating_value
auto
y)
noexcept
;
//3
}
eve::floating_value
The concept floating_value<T> is satisfied if and only if T satisfies eve::value and the element type...
Definition
value.hpp:116
eve::two_sub
constexpr auto two_sub
Computes the elementwise pair consisting of the difference of the parameters and its resulting roundi...
Definition
two_sub.hpp:81
eve
EVE Main Namespace.
Definition
abi.hpp:19
Parameters
x
,
y
:
floating-point arguments
.
Return value
Computes
elementwise
a pair of values
[a, e]
such that:
a
is
x - y
e
is a value such that
a
\(\oplus\)
e
is equal to
x
\(\oplus\)
(-y)
where \(\oplus\) adds its two parameters with infinite precision.
Classical algorithm, always valid.
'Fast' algorithm, valid only if |x| < |y|.
Handles overflow.
External references
On the Computation of Correctly-Rounded Sums
Example
eve