[Sumover-dev] [svn commit] r4512 - vic/branches/cc/cc

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Sep 17 11:24:31 BST 2009


Author: soohyunc
Date: Thu Sep 17 11:24:31 2009
New Revision: 4512

Modified:
   vic/branches/cc/cc/tfwc_rcvr.h

Log:
number "16" should've been replaced to 'BITLEN'.


Modified: vic/branches/cc/cc/tfwc_rcvr.h
==============================================================================
--- vic/branches/cc/cc/tfwc_rcvr.h	(original)
+++ vic/branches/cc/cc/tfwc_rcvr.h	Thu Sep 17 11:24:31 2009
@@ -79,8 +79,8 @@
 	// calculate the number of AckVec chunks
 	// (based on the number of given elements, i.e, numelm)
 	inline int getNumVec (int numelm) {
-		int num = numelm/16 + 1;
-		if (numelm%16 == 0) num -= 1;
+		int num = numelm/BITLEN + 1;
+		if (numelm%BITLEN == 0) num--;
 		return num;
 	}
 



More information about the Sumover-dev mailing list