E.V.E
v2023.02.15
Loading...
Searching...
No Matches

◆ veltkamp

auto eve::veltkamp = functor<veltkamp_t>
inlineconstexpr

Example

// revision 0
#include <eve/module/core.hpp>
#include <iostream>
#include <iomanip>
int main()
{
eve::wide wf = {1.0, 0.1, 3.14159265358979, 1.0e10};
std::cout << std::setprecision(20);
std::cout << "<- wf = " << wf << "\n";
std::cout << "-> veltkamp(wf) = " << eve::veltkamp(wf) << "\n";
auto [xh, xl] = eve::veltkamp(wf);
std::cout << " xh = " << xh << "\n";
std::cout << " xl = " << xl << "\n";
std::cout << " xh + xl = " << xh + xl << "\n";
}
constexpr auto veltkamp
split a loating-point number with radix 2 and p mantissa bits x into two floating-point numbers xh an...
Definition veltkamp.hpp:70
Wrapper for SIMD registers.
Definition wide.hpp:94

Header file

#include <eve/module/core.hpp>

Callable Signatures

namespace eve
{
template<eve::floating_value T, eve::floating_value U >
constexpr kumi::tuple<T, T> veltkamp(T x) noexcept;
}
EVE Main Namespace.
Definition abi.hpp:19

Parameters

Return value

Computes elementwise a pair of values [xh, xl] such that:

  • 'xh+xl' is 'x', but each has much less significant digits.

External references