nscoord addition = PR_MIN(aAvailWidth, NSToCoordRound(((float)(aAvailWidth)) * percent));
nscoord addition = NSToCoordRound(((float)(aAvailWidth)) * percent);  if ((i == aNumAutoCols - 1) && (addition < aAvailWidth)) { addition = aAvailWidth; }  addition = PR_MIN(addition, aAvailWidth);
AC_Increase(PRInt32     aNumAutoCols,             nsColInfo** aColInfo,             PRInt32     aDivisor,             PRInt32&    aAvailWidth){  for (PRInt32 i = 0; i < aNumAutoCols; i++) {    if ((aAvailWidth <= 0) || (aDivisor <= 0)) {      break;    }    float percent = ((float)aColInfo[i]->mMaxWidth) / (float)aDivisor;    aDivisor -= aColInfo[i]->mMaxWidth;    nscoord addition = PR_MIN(aAvailWidth, NSToCoordRound(((float)(aAvailWidth)) * percent));    addition = PR_MIN(addition, aColInfo[i]->mMaxWidth - aColInfo[i]->mWidth);    // don't let the total additions exceed what is available    if (i == aNumAutoCols - 1) {      addition = PR_MIN(addition, aAvailWidth);    }    aColInfo[i]->mWidth += addition;    aAvailWidth -= addition;  }}