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:
Tomasz Sowa 2010-09-23 19:51:55 +00:00
parent 648de47400
commit a34cf55155
1 changed files with 8 additions and 1 deletions

View File

@ -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;
}