#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
<<
"-> pio_3[upper](as(wxf)) = " <<
eve::pio_3[eve::upper](
eve::as(wxf)) << std::endl
<<
"-> pio_3[lower](as(wxf)) = " <<
eve::pio_3[eve::lower](
eve::as(wxf)) << std::endl
<< std::setprecision(17)
<<
"-> pio_3[upper](as(wxd)) = " <<
eve::pio_3[eve::upper](
eve::as(wxd)) << std::endl
<<
"-> pio_3[lower](as(wxd)) = " <<
eve::pio_3[eve::lower](
eve::as(wxd)) << std::endl;
float xf;
double xd;
std::cout << "---- scalar" << std::endl
std::cout << "-> constexpr pio_3 = " << constexpr_pio_3<float>() << std::endl;
return 0;
}
Wrapper for SIMD registers.
Definition wide.hpp:70