Home
last modified time | relevance | path

Searched refs:ldexp (Results 1 – 5 of 5) sorted by relevance

/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DStochasticRoundingUtil.java78 double precisionScaledValue = ldexp(mantissa, numBits); in roundStochastically()
82 return ldexp(truncatedScaledValue, exponent - numBits); in roundStochastically()
89 private static double ldexp(double x, int exponent) { in ldexp() method in StochasticRoundingUtil
/packages/modules/NeuralNetworks/common/
DUtilsTest.cpp344 checkQuantization(std::ldexp(1.0f, -31), 1073741824, -30); in TEST()
345 checkQuantization(std::ldexp(1.0f, -32), 1073741824, -31); in TEST()
346 checkQuantization(std::ldexp(0.99f, -32), 0, 0); in TEST()
347 checkQuantization(std::ldexp(1.0f, -33), 0, 0); in TEST()
/packages/modules/Bluetooth/system/audio/asrc/
Dasrc_resampler_test.py48 xs_int = np.rint(np.clip(np.ldexp(xs, bitdepth-1), xs_min, xs_max)).\
60 return np.ldexp(ys_int, 1 - bitdepth)
Dasrc_resampler_test.cc48 r.Resample(round(ldexp(ratio, 26)), in, channels, in_length / channels, in Resample()
Dasrc_resampler.cc517 unsigned ratio_q26 = round(ldexp(ratio, 26)); in Resample()