From a34cf5515583693586b2e2a88a54721dbd231202 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Thu, 23 Sep 2010 19:51:55 +0000 Subject: [PATCH] added TTMATH_LOG to UInt::FromUInt(ulint n) git-svn-id: svn://ttmath.org/publicrep/ttmath/trunk@319 e52654a7-88a9-db11-a3e9-0013d4bc506e --- ttmath/ttmathuint.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ttmath/ttmathuint.h b/ttmath/ttmathuint.h index 30fa349..25ffbb8 100644 --- a/ttmath/ttmathuint.h +++ b/ttmath/ttmathuint.h @@ -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