Searched refs:ldexp (Results 1 – 5 of 5) sorted by relevance
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/ |
D | StochasticRoundingUtil.java | 78 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/ |
D | UtilsTest.cpp | 344 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/ |
D | asrc_resampler_test.py | 48 xs_int = np.rint(np.clip(np.ldexp(xs, bitdepth-1), xs_min, xs_max)).\ 60 return np.ldexp(ys_int, 1 - bitdepth)
|
D | asrc_resampler_test.cc | 48 r.Resample(round(ldexp(ratio, 26)), in, channels, in_length / channels, in Resample()
|
D | asrc_resampler.cc | 517 unsigned ratio_q26 = round(ldexp(ratio, 26)); in Resample()
|