added TTMATH_LOG to UInt::FromUInt(ulint n)
git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@319 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
parent
648de47400
commit
a34cf55155
|
@ -2758,13 +2758,20 @@ public:
|
|||
table[0] = (uint)n;
|
||||
|
||||
if( value_size == 1 )
|
||||
return ((n >> TTMATH_BITS_PER_UINT) == 0) ? 0 : 1;
|
||||
{
|
||||
uint c = ((n >> TTMATH_BITS_PER_UINT) == 0) ? 0 : 1;
|
||||
|
||||
TTMATH_LOGC("UInt::FromUInt(ulint)", c)
|
||||
return c;
|
||||
}
|
||||
|
||||
table[1] = (uint)(n >> TTMATH_BITS_PER_UINT);
|
||||
|
||||
for(uint i=2 ; i<value_size ; ++i)
|
||||
table[i] = 0;
|
||||
|
||||
TTMATH_LOG("UInt::FromUInt(ulint)")
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue