OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:BigUnsigned
(Results
1 - 9
of
9
) sorted by null
/external/pdfium/third_party/bigint/
BigUnsigned.hh
12
/* A
BigUnsigned
object represents a nonnegative integer of size limited only by
19
class
BigUnsigned
: protected NumberlikeArray<unsigned long> {
32
// Creates a
BigUnsigned
with a capacity; for internal use.
33
BigUnsigned
(int, Index c) : NumberlikeArray<Blk>(0, c) {}
43
BigUnsigned
() : NumberlikeArray<Blk>() {}
46
BigUnsigned
(const
BigUnsigned
&x) : NumberlikeArray<Blk>(x) {}
49
void operator=(const
BigUnsigned
&x) {
54
BigUnsigned
(const Blk *b, Index blen) : NumberlikeArray<Blk>(b, blen) {
60
~
BigUnsigned
() {}
[
all
...]
BigUnsigned.cc
7
#include "
BigUnsigned
.hh"
12
//
BigUnsigned
.hh.
14
BigUnsigned
::
BigUnsigned
(unsigned long x) { initFromPrimitive (x); }
15
BigUnsigned
::
BigUnsigned
(unsigned int x) { initFromPrimitive (x); }
16
BigUnsigned
::
BigUnsigned
(unsigned short x) { initFromPrimitive (x); }
17
BigUnsigned
::
BigUnsigned
( long x) { initFromSignedPrimitive(x);
[
all
...]
BigIntegerUtils.cc
10
std::string bigUnsignedToString(const
BigUnsigned
&x) {
20
BigUnsigned
stringToBigUnsigned(const std::string &s) {
21
return
BigUnsigned
(BigUnsignedInABase(s, 10));
25
// Recognize a sign followed by a
BigUnsigned
.
31
std::ostream &operator <<(std::ostream &os, const
BigUnsigned
&x) {
BigUnsignedInABase.cc
38
BigUnsignedInABase::BigUnsignedInABase(const
BigUnsigned
&x, Base base) {
45
int maxBitLenOfX = x.getLength() *
BigUnsigned
::N;
51
BigUnsigned
x2(x), buBase(base);
56
BigUnsigned
lastDigit(x2);
68
BigUnsignedInABase::operator
BigUnsigned
() const {
69
BigUnsigned
ans(0), buBase(base), temp;
74
ans.add(temp,
BigUnsigned
(blk[digitNum]));
BigInteger.hh
10
#include "
BigUnsigned
.hh"
16
* A BigInteger is just an aggregate of a
BigUnsigned
and a sign. (It is no
17
* longer derived from
BigUnsigned
because that led to harmful implicit
22
typedef
BigUnsigned
::Blk Blk;
23
typedef
BigUnsigned
::Index Index;
24
typedef
BigUnsigned
::CmpRes CmpRes;
26
less =
BigUnsigned
::less ,
27
equal =
BigUnsigned
::equal ,
28
greater =
BigUnsigned
::greater;
34
BigUnsigned
mag
[
all
...]
BigIntegerUtils.hh
15
* - Convenient std::string <->
BigUnsigned
/BigInteger conversion routines
16
* - std::ostream << operators for
BigUnsigned
/BigInteger */
19
std::string bigUnsignedToString(const
BigUnsigned
&x);
21
BigUnsigned
stringToBigUnsigned(const std::string &s);
29
std::ostream &operator <<(std::ostream &os, const
BigUnsigned
&x);
BigUnsignedInABase.hh
11
#include "
BigUnsigned
.hh"
24
* BigUnsignedInABase is similar to
BigUnsigned
. Note the following:
27
* BigUnsignedInABase uses ``digits'' (or Digit) where
BigUnsigned
uses
35
* equality test. Use
BigUnsigned
for arithmetic.
78
// LINKS TO
BIGUNSIGNED
79
BigUnsignedInABase(const
BigUnsigned
&x, Base base);
80
operator
BigUnsigned
() const;
BigInteger.cc
38
BigInteger::BigInteger(const
BigUnsigned
&x, Sign s) : mag(x) {
58
* Same idea as in
BigUnsigned
.cc, except that negative input results in a
89
/* Reuse
BigUnsigned
's conversion to an unsigned primitive integer.
91
* BigInteger::convertToUnsignedPrimitive to avoid requiring
BigUnsigned
to
94
inline X convertBigUnsignedToPrimitiveAccess(const
BigUnsigned
&a) {
106
/* Similar to
BigUnsigned
::convertToPrimitive, but split into two cases for
162
* then call one of
BigUnsigned
's copy-less operations. */
164
// See remarks about aliased calls in
BigUnsigned
.cc .
265
* `
BigUnsigned
::divideWithRemainder' in `
BigUnsigned
.cc' for lots o
[
all
...]
/external/pdfium/third_party/
pdfiumbigint.mk
16
bigint/
BigUnsigned
.cc \
Completed in 113 milliseconds