#include <iostream>
#include <assert.h>
#include <inttypes.h>
#include <vector>
#include <cmath>
#include "defs.h"
Go to the source code of this file.
Namespaces | |
| namespace | mp |
Defines | |
| #define | MIN(x, y) ((x) <? (y)) |
| #define | MAX(x, y) ((x) >? (y)) |
| #define | INVERT(x, y) (((y) - ((x) % (y))) % (y)) |
| #define | BITS_TO_LIMBS(x) |
| #define | LIMBS_TO_BITS(x) ((x) * mp::mpn_::limb_size_bits) |
Typedefs | |
| typedef unsigned char | byte |
| Convenience renaming. | |
| typedef unsigned char | radix_type |
| String conversion radix number type. | |
| typedef intptr_t | size_type |
| This is preferred to be signed for comparison reasons. | |
| typedef uint16_t | limb_type |
| Type of normal limbs. | |
| typedef uint32_t | limb_long_type |
| Type of double-long limbs. | |
| typedef double | float_type |
| Basic non-mpf float type. | |
Enumerations | |
| enum | capability { IS_SIGNED = 0x01, IS_RATIONAL = 0x02, IS_FLOAT = 0x04, CAN_INTERRUPT = 0x10 } |
Variables | |
| typedef std::vector< byte > | raw_type |
| Raw number I/O type. | |
| class typedef signed int | int_type |
| Basic non-mpi signed integer type. | |
|
|
Value: ((mp::size_type) std::ceil((double) (x) / \
mp::mpn_::limb_size_bits))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Convenience renaming.
|
|
|
Basic non-mpf float type.
|
|
|
Type of double-long limbs.
|
|
|
Type of normal limbs.
|
|
|
String conversion radix number type.
|
|
|
This is preferred to be signed for comparison reasons.
|
|
|
|
|
|
Basic non-mpi signed integer type.
|
|
|
Raw number I/O type.
|
1.4.1