Searched refs:maxVal (Results 1 – 3 of 3) sorted by relevance
845 int maxVal, icoeff, res; in setCoeffRegs() local850 maxVal = 1 << mantSize; in setCoeffRegs()858 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) { in setCoeffRegs()861 *coeff = (double)icoeff / (double)(4 * maxVal); in setCoeffRegs()862 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) { in setCoeffRegs()865 *coeff = (double)icoeff / (double)(2 * maxVal); in setCoeffRegs()866 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) { in setCoeffRegs()869 *coeff = (double)icoeff / (double)(maxVal); in setCoeffRegs()870 } else if ((icoeff = (int)(c * maxVal * 0.5 + 0.5)) < maxVal) { in setCoeffRegs()873 *coeff = (double)icoeff / (double)(maxVal / 2); in setCoeffRegs()
289 int maxVal, icoeff, res; in SetCoeffRegs() local294 maxVal = 1 << mantSize; in SetCoeffRegs()302 if ((icoeff = (int)(c * 4 * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()305 *coeff = (double)icoeff / (double)(4 * maxVal); in SetCoeffRegs()306 } else if ((icoeff = (int)(c * 2 * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()309 *coeff = (double)icoeff / (double)(2 * maxVal); in SetCoeffRegs()310 } else if ((icoeff = (int)(c * maxVal + 0.5)) < maxVal) { in SetCoeffRegs()313 *coeff = (double)icoeff / (double)(maxVal); in SetCoeffRegs()314 } else if ((icoeff = (int)(c * maxVal * 0.5 + 0.5)) < maxVal) { in SetCoeffRegs()317 *coeff = (double)icoeff / (double)(maxVal / 2); in SetCoeffRegs()
927 unsigned char maxVal = 0; in inv_set_gyro_calibration() local966 maxVal = 0; in inv_set_gyro_calibration()972 maxVal = 1; in inv_set_gyro_calibration()979 maxVal = 2; in inv_set_gyro_calibration()983 if (maxVal == 0) { in inv_set_gyro_calibration()987 } else if (maxVal == 1) { in inv_set_gyro_calibration()