Some small optimizations.

This commit is contained in:
JoelKatz
2013-04-07 18:34:16 -07:00
parent e538c38d61
commit e3063b0495
2 changed files with 10 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ static void canonicalizeRound(bool isNative, uint64& value, int& offset, bool ro
if (!roundUp) // canonicalize already rounds down
return;
cLog(lsDEBUG) << "canonicalize< " << value << ":" << offset << (roundUp ? " up" : " down");
cLog(lsTRACE) << "canonicalize< " << value << ":" << offset << (roundUp ? " up" : " down");
if (isNative)
{
if (offset < 0)
@@ -55,7 +55,7 @@ static void canonicalizeRound(bool isNative, uint64& value, int& offset, bool ro
value /= 10;
++offset;
}
cLog(lsDEBUG) << "canonicalize> " << value << ":" << offset << (roundUp ? " up" : " down");
cLog(lsTRACE) << "canonicalize> " << value << ":" << offset << (roundUp ? " up" : " down");
}
STAmount STAmount::addRound(const STAmount& v1, const STAmount& v2, bool roundUp)