[Sumover-dev] [svn commit] r4489 - vic/branches/cc/cc
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Wed Jul 22 17:29:03 BST 2009
Author: soohyunc
Date: Wed Jul 22 17:29:02 2009
New Revision: 4489
Modified:
vic/branches/cc/cc/tfwc_rcvr.cpp
vic/branches/cc/cc/tfwc_rcvr.h
Log:
initial num_chunk for buiding AckVec would be better 1 instead of 0.
Modified: vic/branches/cc/cc/tfwc_rcvr.cpp
==============================================================================
--- vic/branches/cc/cc/tfwc_rcvr.cpp (original)
+++ vic/branches/cc/cc/tfwc_rcvr.cpp Wed Jul 22 17:29:02 2009
@@ -50,10 +50,10 @@
ackofack_(0),
begins_(0),
ends_(0),
- currNumElm_(0),
- prevNumElm_(0),
- currNumVec_(0),
- prevNumVec_(0)
+ currNumElm_(1),
+ prevNumElm_(1),
+ currNumVec_(1),
+ prevNumVec_(1)
{
// declare/initialize tfwcAV
tfwcAV = (u_int16_t *) malloc(AVSZ);
@@ -79,11 +79,11 @@
printf(" [%s +%d] seqno: %d, ackofack: %d\n",
__FILE__,__LINE__,currseq_, ackofack_);
- // number of required AckVec element
+ // number of AckVec element
currNumElm_ = currseq_ - ackofack_;
diffNumElm = currNumElm_ - prevNumElm_;
- // number of array required for building tfwcAV
+ // number of cuhnks for building tfwcAV
currNumVec_ = getNumVec(currNumElm_);
diffNumVec = currNumVec_ - prevNumVec_;
Modified: vic/branches/cc/cc/tfwc_rcvr.h
==============================================================================
--- vic/branches/cc/cc/tfwc_rcvr.h (original)
+++ vic/branches/cc/cc/tfwc_rcvr.h Wed Jul 22 17:29:02 2009
@@ -74,8 +74,8 @@
int prevNumVec_; // numver of previous AckVec array
private:
- // calculate the numver of AckVec array
- // (based on the number of given element, i.e, numelm)
+ // 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;
More information about the Sumover-dev
mailing list