test
This commit is contained in:
@@ -807,6 +807,15 @@ int32_t komodo_is_issuer()
|
||||
else return(0);
|
||||
}
|
||||
|
||||
int32_t bitweight(uint64_t x)
|
||||
{
|
||||
int i,wt = 0;
|
||||
for (i=0; i<64; i++)
|
||||
if ( (1LL << i) & x )
|
||||
wt++;
|
||||
return(wt);
|
||||
}
|
||||
|
||||
int32_t _unhex(char c)
|
||||
{
|
||||
if ( c >= '0' && c <= '9' )
|
||||
|
||||
Reference in New Issue
Block a user