Using TMath::Log instead of log
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Feb 2008 17:30:54 +0000 (17:30 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 7 Feb 2008 17:30:54 +0000 (17:30 +0000)
ITS/AliITSIntMap.cxx

index e786e8752fe62c6bcff6566bd0eaa94781e958ec..3d5b2ca41fec252c130febf39f1631128c1115d2 100644 (file)
@@ -104,7 +104,7 @@ void AliITSIntMap::InsertNode(Int_t key, Int_t val, AliITSIntMapNode* &node, UIn
     fNrEntries++;
     fFastAccess=kFALSE;
     fFastAccessSerialize=kFALSE;
-    UInt_t balanceHeight = (UInt_t) (log(fNrEntries+1)/log(2)+1);
+    UInt_t balanceHeight = (UInt_t) (TMath::Log(fNrEntries+1)/TMath::Log(2)+1);
     if ( (height-balanceHeight)*(height-balanceHeight) > fNrEntries ) {
       Balance();
     }
@@ -198,7 +198,7 @@ AliITSIntMapNode*  AliITSIntMap::FindNode(Int_t key, AliITSIntMapNode* node, UIn
   else if (key>node->Key()) return FindNode(key,node->Right(),height);
   else { // Match
 //    //*** balance if height too high. const above have to be removed if this is needed ***
-//    UInt_t balanceHeight = (UInt_t) (log(fNrEntries+1)/log(2)+1);
+//    UInt_t balanceHeight = (UInt_t) (TMath::Log(fNrEntries+1)/TMath::Log(2)+1);
 //    if ( (height-balanceHeight)*(height-balanceHeight) > fNrEntries ) {
 //      Balance();
 //    }