#include <eve/module/math.hpp>
#include <eve/wide.hpp>
#include <iostream>
#include <iomanip>
template<typename T>
int main()
{
wide_ft wxf;
wide_dt wxd;
std::cout << "---- simd" << std::setprecision(9) << std::endl
<<
"-> pi3[upper](as(wxf)) = " <<
eve::pi3[eve::upper](
eve::as(wxf)) << std::endl
<<
"-> pi3[lower](as(wxf)) = " <<
eve::pi3[eve::lower](
eve::as(wxf)) << std::endl
<< std::setprecision(17)
<<
"-> pi3[upper](as(wxd)) = " <<
eve::pi3[eve::upper](
eve::as(wxd)) << std::endl
<<
"-> pi3[lower](as(wxd)) = " <<
eve::pi3[eve::lower](
eve::as(wxd)) << std::endl;
float xf;
double xd;
std::cout << "---- scalar" << std::endl
std::cout << "-> constexpr pi3 = " << constexpr_pi3<float>() << std::endl;
return 0;
}
Wrapper for SIMD registers.
Definition wide.hpp:86