Home
last modified time | relevance | path

Searched refs:fracPart (Results 1 – 2 of 2) sorted by relevance

/external/skia/src/pdf/
DSkPDFUtils.cpp321 double fracPart = std::modf(static_cast<double>(value), &intPart); in FloatToDecimal() local
322 SkASSERT(intPart + fracPart == static_cast<double>(value)); in FloatToDecimal()
327 SkASSERT(intPart >= 0.0 && fracPart >= 0.0); // negative handled already. in FloatToDecimal()
328 SkASSERT(intPart > 0.0 || fracPart > 0.0); // zero already caught. in FloatToDecimal()
348 if (fracPart > 0 && significantDigits < maxSignificantDigits) { in FloatToDecimal()
352 fracPart = std::modf(fracPart * 10.0, &intPart); in FloatToDecimal()
361 } while (fracPart > 0.0 in FloatToDecimal()
/external/webrtc/webrtc/modules/audio_processing/agc/legacy/
Ddigital_agc.c75 uint16_t tmpU16, intPart, fracPart; in WebRtcAgc_CalculateGainTable() local
153 fracPart = (uint16_t)(absInLevel & 0x00003FFF); // extract the fractional part in WebRtcAgc_CalculateGainTable()
155 tmpU32no1 = tmpU16 * fracPart; // Q22 in WebRtcAgc_CalculateGainTable()
234 fracPart = (uint16_t)(tmp32 & 0x00003FFF); // in Q14 in WebRtcAgc_CalculateGainTable()
235 if ((fracPart >> 13) != 0) in WebRtcAgc_CalculateGainTable()
238 tmp32no2 = (1 << 14) - fracPart; in WebRtcAgc_CalculateGainTable()
245 tmp32no2 = (fracPart * tmp16) >> 13; in WebRtcAgc_CalculateGainTable()
247 fracPart = (uint16_t)tmp32no2; in WebRtcAgc_CalculateGainTable()
249 (1 << intPart) + WEBRTC_SPL_SHIFT_W32(fracPart, intPart - 14); in WebRtcAgc_CalculateGainTable()