CMS 3D CMS Logo

Namespaces | Functions | Variables
liblogintpack.h File Reference
#include <cmath>
#include <cstdint>

Go to the source code of this file.

Namespaces

 logintpack
 

Functions

int16_t logintpack::pack16log (double x, double lmin, double lmax, uint16_t base=32768)
 
int16_t logintpack::pack16logCeil (double x, double lmin, double lmax, uint16_t base=32768)
 
int16_t logintpack::pack16logClosed (double x, double lmin, double lmax, uint16_t base=32768)
 
int8_t logintpack::pack8log (double x, double lmin, double lmax, uint8_t base=128)
 
int8_t logintpack::pack8logCeil (double x, double lmin, double lmax, uint8_t base=128)
 
int8_t logintpack::pack8logClosed (double x, double lmin, double lmax, uint8_t base=128)
 
double logintpack::unpack16log (int16_t i, double lmin, double lmax, uint16_t base=32768)
 
double logintpack::unpack16logClosed (int16_t i, double lmin, double lmax, uint16_t base=32768)
 reverse of pack8logClosed More...
 
double logintpack::unpack8log (int8_t i, double lmin, double lmax, uint8_t base=128)
 
double logintpack::unpack8logClosed (int8_t i, double lmin, double lmax, uint8_t base=128)
 reverse of pack8logClosed More...
 

Variables

constexpr int8_t logintpack::smallestNegative = -1
 
constexpr int8_t logintpack::smallestPositive = 0