#include "glucat/portability.h"
#include <limits>
#include <climits>
Go to the source code of this file.
|
| using | glucat::index_t = int |
| | Size of index_t should be enough to represent LO, HI.
|
| |
| using | glucat::set_value_t = unsigned long |
| | Size of set_value_t should be enough to contain index_set<LO,HI>
|
| |
|
| | glucat::_GLUCAT_CTAssert (std::numeric_limits< unsigned char >::radix==2, CannotDetermineBitsPerChar) const index_t BITS_PER_CHAR |
| | If radix of unsigned char is not 2, we can't easily determine number of bits from sizeof.
|
| |
| | glucat::_GLUCAT_CTAssert (_GLUCAT_BITS_PER_ULONG==BITS_PER_SET_VALUE, BitsPerULongDoesNotMatchSetValueT) const index_t DEFAULT_LO |
| | Default lowest index in an index set.
|
| |
| template<typename LHS_T , typename RHS_T > |
| auto | glucat::pos_mod (LHS_T lhs, RHS_T rhs) -> LHS_T |
| | Modulo function which works reliably for lhs < 0.
|
| |
◆ _GLUCAT_CTAssert
| #define _GLUCAT_CTAssert |
( |
| expr, |
|
|
| msg ) |