openCARP
Doxygen code documentation for the open cardiac electrophysiology simulator openCARP
Macros | Typedefs | Functions | Variables
short_float.h File Reference
#include <cstdint>
Include dependency graph for short_float.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SHORTVEC(V, A, B, C)   short_float V[3] = {shortFromFloat(A),shortFromFloat(B),shortFromFloat(C)}
 
#define SHORT_VCP(V, A)
 
#define FLOAT_VCP(V, A)
 
#define SHORT_FLOAT_MACHINE_EPS   0.0009765625
 

Typedefs

typedef uint16_t short_float
 

Functions

short_float negShort (short_float x)
 

Variables

const uint16_t basetable [512]
 
const uint16_t shifttable [512]
 
const uint32_t mantissatable [2048]
 
const uint16_t offsettable [64]
 
const uint32_t exponenttable [64]
 

Macro Definition Documentation

◆ FLOAT_VCP

#define FLOAT_VCP (   V,
 
)
Value:
{float *v=(float *)(V);short_float *a=(short_float *)(A); \
v[0]=floatFromShort(a[0]);\
v[1]=floatFromShort(a[1]);\
v[2]=floatFromShort(a[2]);}
uint16_t short_float
Definition: short_float.h:58

Definition at line 47 of file short_float.h.

◆ SHORT_FLOAT_MACHINE_EPS

#define SHORT_FLOAT_MACHINE_EPS   0.0009765625

Definition at line 82 of file short_float.h.

◆ SHORT_VCP

#define SHORT_VCP (   V,
 
)
Value:
{float *a=(float *)(A);short_float *v=(short_float *)(V); \
v[0]=shortFromFloat(a[0]);\
v[1]=shortFromFloat(a[1]);\
v[2]=shortFromFloat(a[2]);}

Definition at line 43 of file short_float.h.

◆ SHORTVEC

#define SHORTVEC (   V,
  A,
  B,
 
)    short_float V[3] = {shortFromFloat(A),shortFromFloat(B),shortFromFloat(C)}

Definition at line 42 of file short_float.h.

Typedef Documentation

◆ short_float

typedef uint16_t short_float

Definition at line 58 of file short_float.h.

Function Documentation

◆ negShort()

short_float negShort ( short_float  x)
inline

Definition at line 78 of file short_float.h.

Variable Documentation

◆ basetable

const uint16_t basetable[512]
extern

Definition at line 23 of file short_float.cc.

◆ exponenttable

const uint32_t exponenttable[64]
extern

Definition at line 3171 of file short_float.cc.

◆ mantissatable

const uint32_t mantissatable[2048]
extern

Definition at line 1053 of file short_float.cc.

◆ offsettable

const uint16_t offsettable[64]
extern

Definition at line 3104 of file short_float.cc.

◆ shifttable

const uint16_t shifttable[512]
extern

Definition at line 538 of file short_float.cc.