Wire Sysio Wire Sysion 1.0.0
|
#include <zm.h>
Public Types | |
typedef local::PrimitiveFunction | F |
typedef Buffer::value_type | T |
Public Member Functions | |
VuintT (T x=0) | |
VuintT (const std::string &str) | |
VuintT (const uint32_t *x, size_t size) | |
VuintT (const uint64_t *x, size_t size) | |
void | set (T x) |
void | set (const uint32_t *x, size_t size) |
void | set (const uint64_t *x, size_t size) |
T | getAtWithCheck (size_t i) const |
void | clear () |
std::string | toString (int base=10) const |
void | set (const std::string &str, int base=0) |
void | fromStr (const std::string &str, int base=10) |
std::string | toStr (int base=10) const |
size_t | size () const |
bool | isZero () const |
size_t | bitLen () const |
bool | testBit (size_t i) const |
void | trim () |
Public Member Functions inherited from mie::local::dividable< VuintT< Buffer >, local::addsubmul< VuintT< Buffer >, local::comparable< VuintT< Buffer >, local::shiftable< VuintT< Buffer >, Buffer > > > > | |
MIE_FORCE_INLINE VuintT< Buffer > & | operator/= (const VuintT< Buffer > &rhs) |
MIE_FORCE_INLINE VuintT< Buffer > & | operator%= (const VuintT< Buffer > &rhs) |
Public Member Functions inherited from mie::local::addsubmul< VuintT< Buffer >, local::comparable< VuintT< Buffer >, local::shiftable< VuintT< Buffer >, Buffer > > > | |
MIE_FORCE_INLINE VuintT< Buffer > & | operator+= (const N &rhs) |
MIE_FORCE_INLINE VuintT< Buffer > & | operator-= (const VuintT< Buffer > &rhs) |
MIE_FORCE_INLINE VuintT< Buffer > & | operator*= (const VuintT< Buffer > &rhs) |
Public Member Functions inherited from mie::local::shiftable< VuintT< Buffer >, Buffer > | |
MIE_FORCE_INLINE VuintT< Buffer > | operator<< (size_t n) const |
MIE_FORCE_INLINE VuintT< Buffer > | operator>> (size_t n) const |
MIE_FORCE_INLINE VuintT< Buffer > & | operator<<= (size_t n) |
MIE_FORCE_INLINE VuintT< Buffer > & | operator>>= (size_t n) |
Static Public Member Functions | |
static int | compare (const VuintT &x, const VuintT &y) |
static bool | add_in (VuintT &out, const VuintT &x, const VuintT &y) |
static void | add (VuintT &out, const VuintT &x, const VuintT &y) |
static void | add (VuintT &out, const VuintT &x, uint32_t y) |
static bool | sub_in (VuintT &out, const VuintT &x, const VuintT &y) |
static void | sub (VuintT &out, const VuintT &x, const VuintT &y) |
static void | mul1 (VuintT &out, const VuintT &x, T y) |
static void | mul (VuintT &out, const VuintT &x, const VuintT &y) |
static T | div1 (VuintT *q, const VuintT &x, T y) |
static bool | div (VuintT *q, VuintT &r, const VuintT &x, const VuintT &y) |
static void | shlUnit (VuintT &out, const VuintT &x, size_t n) |
static void | shlBit (VuintT &out, const VuintT &x, size_t n) |
static void | shrUnit (VuintT &out, const VuintT &x, size_t n) |
static void | shrBit (VuintT &out, const VuintT &x, size_t n) |
static void | shl (VuintT &out, const VuintT &x, size_t n) |
static void | shr (VuintT &out, const VuintT &x, size_t n) |
static void | mul (T *out, const T *x, size_t xn, const T *y, size_t yn) |
static void | div (T *q, T *x, size_t xn, const T *y, size_t yn) |
Friends | |
std::ostream & | operator<< (std::ostream &os, const VuintT &x) |
std::istream & | operator>> (std::istream &is, VuintT &x) |
unsigned integer with variable length
local::PrimitiveFunction mie::VuintT< Buffer >::F |
Buffer::value_type mie::VuintT< Buffer >::T |
|
inline |
|
inlineexplicit |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 564 of file zm.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 547 of file zm.h.
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 926 of file zm.h.
|
inlinestatic |
q | [out] x / y if q != 0 |
r | [out] x % y |
true | if y != 0 @retavl false if y == 0 |
Definition at line 661 of file zm.h.
|
inlinestatic |
q | [out] q = x / y |
x | [in] |
y | [in] must be not zero |
Definition at line 642 of file zm.h.
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Definition at line 904 of file zm.h.
|
inlinestatic |
Definition at line 613 of file zm.h.
|
inlinestatic |
|
inline |
Definition at line 452 of file zm.h.
|
inline |
Definition at line 346 of file zm.h.
|
inline |
Definition at line 369 of file zm.h.
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 757 of file zm.h.
|
inlinestatic |
Definition at line 743 of file zm.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 798 of file zm.h.
|
inlinestatic |
Definition at line 780 of file zm.h.
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 584 of file zm.h.
|
inline |
|
inline |
|
inline |
Definition at line 407 of file zm.h.
|
inline |