Empirical
Namespaces | Functions | Variables
const.h File Reference

Commonly used constant values. More...

#include <cstdint>

Go to the source code of this file.

Namespaces

 emp
 If we are in emscripten, make sure to include the header.
 

Functions

template<typename T >
constexpr T emp::MaxValue ()
 Determine the maximum value for any type. More...
 
template<typename T >
constexpr double emp::InterpolateTable (T &&table, double pos, double tsize)
 The following function takes a table and a position [0.0, 1.0) and intepolates a value. More...
 

Variables

constexpr const double emp::E = 2.71828
 e More...
 
constexpr const double emp::PHI = 1.61803398874
 Golden ratio. More...
 
constexpr const double emp::PI = 3.14159265358979
 pi More...
 
constexpr const double emp::SQRT2 = 1.41421356237310
 sqrt(2) More...
 
constexpr const uint32_t emp::MAX_BYTE = 255
 (2^8 - 1) More...
 
constexpr const uint32_t emp::MAX_2BYTE = 65535
 (2^16 - 1) More...
 
constexpr const uint32_t emp::MAX_WORD = 65535
 (2^16 - 1) More...
 
constexpr const uint32_t emp::MAX_3BYTE = 16777215
 (2^24 - 1) More...
 
constexpr const uint32_t emp::MAX_UINT = 4294967295
 (2^32 - 1) More...
 
constexpr const uint32_t emp::MAX_4BYTE = 4294967295
 (2^32 - 1) More...
 
constexpr const int32_t emp::MIN_INT = -2147483648
 (- 2^31) More...
 
constexpr const double emp::log2_chart_1_2 []
 Large table to log base-2 results. More...
 
constexpr const double emp::pow2_chart_bits []
 Table to provide results of Pow2 for values of bits (0.1, 0.01, 0.001, etc, in binary) More...
 
constexpr const double emp::pow2_chart_0_1 []
 Table to provide results of Pow2 from 0 to 1. More...
 

Detailed Description

Commonly used constant values.

Note
This file is part of Empirical, https://github.com/devosoft/Empirical
Date
2015-2017
Note
Status: RELEASE