Extension: ExBLAS
#include "dg/algorithm.h" (or as a standalone library as "dg/exblas/exblas.h")
Loading...
Searching...
No Matches
dg::exblas::ufloat Union Reference

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

#include <exdot_serial.h>

Public Attributes

float f
 a float
 
int32_t i
 a 32 bit integer
 

Detailed Description

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

float result; // = ...
ufloat res;
res.f = result;
std::cout << "Result as float "<<res.f<<" as integer "<<res.i<<std::endl;
Utility union to display all bits of a float (using type-punning)
Definition exdot_serial.h:53
float f
a float
Definition exdot_serial.h:54
int32_t i
a 32 bit integer
Definition exdot_serial.h:55

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