Extension: ExBLAS
#include "dg/algorithm.h" (or as a standalone library as "dg/exblas/exblas.h")
dg::exblas::udouble Union Reference

Utility union to display all bits of a double (using type-punning) More...

#include <exdot_serial.h>

Public Attributes

double d
 a double
 
int64_t i
 a 64 bit integer
 

Detailed Description

Utility union to display all bits of a double (using type-punning)

double result; // = ...
udouble res;
res.d = result;
std::cout << "Result as double "<<res.d<<" as integer "<<res.i<<std::endl;

The documentation for this union was generated from the following file: