Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Josh Wilcox
crown-core
Commits
e42b14ca
Commit
e42b14ca
authored
8 years ago
by
infernoman
Browse files
Options
Download
Email Patches
Plain Diff
Remove uint512
parent
f1b5c458
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/arith_uint256.h
+2
-19
src/arith_uint256.h
with
2 additions
and
19 deletions
+2
-19
src/arith_uint256.h
View file @
e42b14ca
...
...
@@ -57,6 +57,7 @@ public:
}
explicit
base_uint
(
const
std
::
string
&
str
);
explicit
base_uint
(
const
std
::
vector
<
unsigned
char
>&
vch
);
bool
operator
!
()
const
{
...
...
@@ -249,7 +250,6 @@ public:
}
friend
class
uint256
;
friend
class
uint512
;
};
/** 256-bit unsigned big integer. */
...
...
@@ -259,6 +259,7 @@ public:
arith_uint256
(
const
base_uint
<
256
>&
b
)
:
base_uint
<
256
>
(
b
)
{}
arith_uint256
(
uint64_t
b
)
:
base_uint
<
256
>
(
b
)
{}
explicit
arith_uint256
(
const
std
::
string
&
str
)
:
base_uint
<
256
>
(
str
)
{}
explicit
arith_uint256
(
const
std
::
vector
<
unsigned
char
>&
vch
)
:
base_uint
<
256
>
(
vch
)
{}
/**
* The "compact" format is a representation of a whole
...
...
@@ -287,24 +288,6 @@ public:
friend
arith_uint256
UintToArith256
(
const
uint256
&
);
};
/** 512-bit unsigned big integer. */
class
uint512
:
public
base_uint
<
512
>
{
public:
uint512
()
{}
uint512
(
const
base_uint
<
512
>&
b
)
:
base_uint
<
512
>
(
b
)
{}
uint512
(
uint64_t
b
)
:
base_uint
<
512
>
(
b
)
{}
explicit
uint512
(
const
std
::
string
&
str
)
:
base_uint
<
512
>
(
str
)
{}
explicit
uint512
(
const
std
::
vector
<
unsigned
char
>&
vch
)
:
base_uint
<
512
>
(
vch
)
{}
arith_uint256
trim256
()
const
{
arith_uint256
ret
;
for
(
unsigned
int
i
=
0
;
i
<
arith_uint256
::
WIDTH
;
i
++
){
ret
.
pn
[
i
]
=
pn
[
i
];
}
return
ret
;
}
};
uint256
ArithToUint256
(
const
arith_uint256
&
);
arith_uint256
UintToArith256
(
const
uint256
&
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help