Home | History | Annotate | Download | only in src

Lines Matching full:maxval

289     int maxVal, icoeff, res;
294 maxVal = 1 << mantSize;
302 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) {
305 *coeff = (double)icoeff / (double)(4 * maxVal);
306 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) {
309 *coeff = (double)icoeff / (double)(2 * maxVal);
310 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) {
313 *coeff = (double)icoeff / (double)(maxVal);
314 } else if ((icoeff = (int)(c * maxVal * 0.5 + 0.5)) < maxVal) {
317 *coeff = (double)icoeff / (double)(maxVal / 2);