include/algebramix/base_int.hpp File Reference
#include <numerix/modular_int.hpp>
#include <algebramix/base.hpp>
#include <algebramix/base_dicho.hpp>
Go to the source code of this file.
Classes
- struct base_naive_variant_helper< signed char >
- struct base_dicho_variant_helper< signed char >
- struct base_transformer_helper_unsigned< C, signed char >
- struct base_naive_variant_helper< short int >
- struct base_dicho_variant_helper< short int >
- struct base_transformer_helper_unsigned< C, short int >
- struct base_naive_variant_helper< int >
- struct base_dicho_variant_helper< int >
- struct base_transformer_helper_unsigned< C, int >
- struct base_naive_variant_helper< long int >
- struct base_dicho_variant_helper< long int >
- struct base_transformer_helper_unsigned< C, long int >
- struct base_naive_variant_helper< long long int >
- struct base_dicho_variant_helper< long long int >
- struct base_transformer_helper_unsigned< C, long long int >
- struct base_naive_variant_helper< unsigned char >
- struct base_dicho_variant_helper< unsigned char >
- struct base_naive_variant_helper< unsigned short int >
- struct base_dicho_variant_helper< unsigned short int >
- struct base_naive_variant_helper< unsigned int >
- struct base_dicho_variant_helper< unsigned int >
- struct base_naive_variant_helper< unsigned long int >
- struct base_dicho_variant_helper< unsigned long int >
- struct base_naive_variant_helper< unsigned long long int >
- struct base_dicho_variant_helper< unsigned long long int >
- struct size_bound_in_base_helper< signed char, J >
- struct size_bound_in_base_helper< short int, J >
- struct size_bound_in_base_helper< int, J >
- struct size_bound_in_base_helper< long int, J >
- struct size_bound_in_base_helper< long long int, J >
- struct size_bound_in_base_helper< unsigned char, J >
- struct size_bound_in_base_helper< unsigned short int, J >
- struct size_bound_in_base_helper< unsigned int, J >
- struct size_bound_in_base_helper< unsigned long int, J >
- struct size_bound_in_base_helper< unsigned long long int, J >
Namespaces
Defines
Functions
- DEFINE_VARIANT (base_naive_int, base_signed< base_naive >) DEFINE_VARIANT(base_dicho_int
- base_signed< base_dicho
< base_naive > > DEFINE_VARIANT (base_naive_uint, base_naive) DEFINE_VARIANT(base_dicho_uint
Define Documentation
#define DECLARE_HELPER |
( |
I |
|
) |
|
Value:template<typename J> \
struct size_bound_in_base_helper<I,J> { \
static inline nat \
size (const I& s, const J& p) { \
ASSERT (bit_size (p) > 1, "invalid base"); \
return is_signed_helper<I>::value ? \
1 + (1 + bit_size (s)) / (bit_size (p) - 1): \
1 + bit_size (s) / (bit_size (p) - 1); } };
Definition at line 71 of file base_int.hpp.
#define DECLARE_HELPER |
( |
I |
|
) |
|
Value:STMPL \
struct base_naive_variant_helper<I> { \
typedef base_naive_uint BV; \
}; \
STMPL \
struct base_dicho_variant_helper<I> { \
typedef base_dicho_uint BV; \
};
Definition at line 71 of file base_int.hpp.
#define DECLARE_HELPER |
( |
I |
|
) |
|
Value:STMPL \
struct base_naive_variant_helper<I> { \
typedef base_naive_int BV; \
}; \
STMPL \
struct base_dicho_variant_helper<I> { \
typedef base_dicho_int BV; \
}; \
template<typename C> \
struct base_transformer_helper_unsigned<C,I> { \
typedef typename Base_transformer(C,I) Baser; \
};
Definition at line 71 of file base_int.hpp.