ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Classes | Namespaces | Functions | Variables
vdtcore_common.h File Reference
#include "inttypes.h"
#include <cmath>
Include dependency graph for vdtcore_common.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  vdt::details::ieee754
 Used to switch between different type of interpretations of the data (64 bits) More...
 

Namespaces

 vdt
 
 vdt::details
 

Functions

double vdt::details::uint642dp (uint64_t ll)
 Converts an unsigned long long to a double. More...
 
uint64_t vdt::details::dp2uint64 (double x)
 Converts a double to an unsigned long long. More...
 
double vdt::details::dpANDuint64 (const double x, const uint64_t i)
 Makes an AND of a double and a unsigned long long. More...
 
double vdt::details::dpORuint64 (const double x, const uint64_t i)
 Makes an OR of a double and a unsigned long long. More...
 
double vdt::details::dpXORuint64 (const double x, const uint64_t i)
 Makes a XOR of a double and a unsigned long long. More...
 
uint64_t vdt::details::getSignMask (const double x)
 
float vdt::details::uint322sp (int x)
 Converts an int to a float. More...
 
uint32_t vdt::details::sp2uint32 (float x)
 Converts a float to an int. More...
 
float vdt::details::spANDuint32 (const float x, const uint32_t i)
 Makes an AND of a float and a unsigned long. More...
 
float vdt::details::spORuint32 (const float x, const uint32_t i)
 Makes an OR of a float and a unsigned long. More...
 
float vdt::details::spXORuint32 (const float x, const uint32_t i)
 Makes an OR of a float and a unsigned long. More...
 
uint32_t vdt::details::getSignMask (const float x)
 Get the sign mask. More...
 
double vdt::details::getMantExponent (const double x, double &fe)
 Like frexp but vectorising and the exponent is a double. More...
 
float vdt::details::getMantExponentf (const float x, float &fe)
 Like frexp but vectorising and the exponent is a float. More...
 
uint32_t vdt::details::fp2uint (float x)
 Converts a fp to an int. More...
 
uint64_t vdt::details::fp2uint (double x)
 Converts a fp to an int. More...
 
float vdt::details::int2fp (uint32_t i)
 Converts an int to fp. More...
 
double vdt::details::int2fp (uint64_t i)
 Converts an int to fp. More...
 
double vdt::details::fpfloor (const double x)
 A vectorisable floor implementation, not only triggered by fast-math. More...
 
float vdt::details::fpfloor (const float x)
 A vectorisable floor implementation, not only triggered by fast-math. More...
 

Variables

const double vdt::details::TWOPI = 2.*M_PI
 
const double vdt::details::PI = M_PI
 
const double vdt::details::PIO2 = M_PI_2
 
const double vdt::details::PIO4 = M_PI_4
 
const double vdt::details::ONEOPIO4 = 4./M_PI
 
const float vdt::details::TWOPIF = 2.*M_PI
 
const float vdt::details::PIF = M_PI
 
const float vdt::details::PIO2F = M_PI_2
 
const float vdt::details::PIO4F = M_PI_4
 
const float vdt::details::ONEOPIO4F = 4./M_PI
 
const double vdt::details::MOREBITS = 6.123233995736765886130E-17
 
const float vdt::details::MAXNUMF = 3.4028234663852885981170418348451692544e38f