use portable CmiLog2 instead of log2
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 17 Nov 2008 20:20:57 +0000 (20:20 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 17 Nov 2008 20:20:57 +0000 (20:20 +0000)
src/ck-cp/controlPoints.C

index e73c057d8a15a9618dc8e7452d06d29269c46dd6..a1e4b7f73861a71a6cd3f2a97469aa279bf3b942 100644 (file)
@@ -961,8 +961,8 @@ int controlPoint2Pow(const char *name, int fine_granularity, int coarse_granular
   } 
   else {
 
-    int l1 = log2(fine_granularity);
-    int l2 = log2(coarse_granularity);
+    int l1 = CmiLog2(fine_granularity);
+    int l2 = CmiLog2(coarse_granularity);
   
     if (l1 > l2){
       int tmp;