Lines Matching refs:maxVal
850 int maxVal, icoeff, res;
855 maxVal = 1 << mantSize;
863 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) {
866 *coeff = (double)icoeff / (double)(4 * maxVal);
867 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) {
870 *coeff = (double)icoeff / (double)(2 * maxVal);
871 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) {
874 *coeff = (double)icoeff / (double)(maxVal);
875 } else if ((icoeff = (int)(c * maxVal * 0.5 + 0.5)) < maxVal) {
878 *coeff = (double)icoeff / (double)(maxVal / 2);