Move non-trivial uint256.h methods to uint256.cpp

This commit is contained in:
Pieter Wuille
2014-06-28 17:35:22 +02:00
parent 236ae8665e
commit de79aaa7a9
5 changed files with 316 additions and 245 deletions

View File

@@ -419,6 +419,11 @@ const signed char p_util_hexdigit[256] =
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1, };
signed char HexDigit(char c)
{
return p_util_hexdigit[(unsigned char)c];
}
bool IsHex(const string& str)
{
BOOST_FOREACH(char c, str)