Home
last modified time | relevance | path

Searched refs:lo (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/core/java/android/util/
DContainerHelpers.java23 int lo = 0; in binarySearch() local
26 while (lo <= hi) { in binarySearch()
27 final int mid = (lo + hi) >>> 1; in binarySearch()
31 lo = mid + 1; in binarySearch()
38 return ~lo; // value not present in binarySearch()
42 int lo = 0; in binarySearch() local
45 while (lo <= hi) { in binarySearch()
46 final int mid = (lo + hi) >>> 1; in binarySearch()
50 lo = mid + 1; in binarySearch()
57 return ~lo; // value not present in binarySearch()
/frameworks/av/media/codecs/amrwb/enc/src/
Doper_32b.c57 __inline void VO_L_Extract (Word32 L_32, Word16 *hi, Word16 *lo) in VO_L_Extract() argument
60 *lo = (Word16)((L_32 & 0xffff) >> 1); in VO_L_Extract()
85 Word32 L_Comp (Word16 hi, Word16 lo) in L_Comp() argument
91 return (L_mac (L_32, lo, 1)); /* = hi<<16 + lo<<1 */ in L_Comp()
143 __inline Word32 Mpy_32_16 (Word16 hi, Word16 lo, Word16 n) in Mpy_32_16() argument
148 L_32 += (((lo * n)>>15)<<1); in Mpy_32_16()
197 Word16 approx, hi, lo, n_hi, n_lo; in Div_32() local
210 lo = (L_32 & 0xffff) >> 1; in Div_32()
212 L_32 = Mpy_32_16 (hi, lo, approx); in Div_32()
216 lo = (L_32 & 0xffff) >> 1; in Div_32()
[all …]
Disp_az.c46 Word16 hi, lo; in Isp_Az() local
92 lo = (f1[i] & 0xffff)>>1; in Isp_Az()
94 t0 = Mpy_32_16(hi, lo, isp[m - 1]); in Isp_Az()
100 lo = (f2[i] & 0xffff)>>1; in Isp_Az()
101 t0 = Mpy_32_16(hi, lo, isp[m - 1]); in Isp_Az()
156 lo = (f1[nc] & 0xffff)>>1; in Isp_Az()
157 t0 = Mpy_32_16(hi, lo, isp[m - 1]); in Isp_Az()
188 Word16 hi, lo; in Get_isp_pol() local
203 lo = (f[-1] & 0xffff)>>1; in Get_isp_pol()
205 t0 = Mpy_32_16(hi, lo, *isp); /* t0 = f[-1] * isp */ in Get_isp_pol()
[all …]
Dlevinson.c116 Word16 hi, lo; in Levinson() local
150 lo = (t0 & 0xffff)>>1; in Levinson()
152 t0 = Mpy_32(Rh[0], Rl[0], hi, lo); /* Alpha in Q31 */ in Levinson()
219 lo = (t0 & 0xffff)>>1; in Levinson()
220 t0 = Mpy_32(alp_h, alp_l, hi, lo); /* Alpha in Q31 */ in Levinson()
Dp_med_ol.c39 Word16 hi, lo; in Pitch_med_ol() local
72 lo = (R0 & 0xffff)>>1; in Pitch_med_ol()
74 R0 = Mpy_32_16(hi, lo, *ww); in Pitch_med_ol()
81 lo = (R0 & 0xffff)>>1; in Pitch_med_ol()
82 R0 = Mpy_32_16(hi, lo, *we); in Pitch_med_ol()
/frameworks/base/core/java/android/app/usage/
DTimeSparseArray.java47 int lo = 0; in closestIndexOnOrAfter() local
51 while (lo <= hi) { in closestIndexOnOrAfter()
52 mid = lo + ((hi - lo) / 2); in closestIndexOnOrAfter()
56 lo = mid + 1; in closestIndexOnOrAfter()
66 } else if (time > key && lo < size) { in closestIndexOnOrAfter()
67 return lo; in closestIndexOnOrAfter()
DEventList.java107 int lo = 0; in firstIndexOnOrAfter() local
109 while (lo <= hi) { in firstIndexOnOrAfter()
110 final int mid = (lo + hi) >>> 1; in firstIndexOnOrAfter()
116 lo = mid + 1; in firstIndexOnOrAfter()
/frameworks/base/libs/androidfw/
DAssetDir.cpp42 int lo, hi, cur; in findEntry()
44 lo = 0; in findEntry()
46 while (lo <= hi) { in findEntry()
49 cur = (hi + lo) / 2; in findEntry()
56 lo = cur + 1; in findEntry()
/frameworks/av/media/codecs/amrnb/common/src/
Ddiv_32.cpp176 Word16 lo; in Div_32() local
192 lo = (result >> 1) - (hi << 15); in Div_32()
194 result = Mpy_32_16(hi, lo, approx, pOverflow); in Div_32()
199 lo = (result >> 1) - (hi << 15); in Div_32()
204 result = Mpy_32(n_hi, n_lo, hi, lo, pOverflow); in Div_32()
Dlsp_az.cpp261 Word16 lo; in Get_lsp_pol() local
278 lo = (Word16)((*(f - 1) >> 1) - ((Word32) hi << 15)); in Get_lsp_pol()
281 t0 += ((Word32)lo * *lsp) >> 15; in Get_lsp_pol()
/frameworks/av/media/codecs/amrwb/dec/src/
Disf_extrapolation.cpp123 int16 exp, exp2, hi, lo; in isf_extrapolation() local
164 int32_to_dpf(L_tmp, &hi, &lo); in isf_extrapolation()
165 L_tmp = mpy_dpf_32(hi, lo, hi, lo); in isf_extrapolation()
174 int32_to_dpf(L_tmp, &hi, &lo); in isf_extrapolation()
175 L_tmp = mpy_dpf_32(hi, lo, hi, lo); in isf_extrapolation()
184 int32_to_dpf(L_tmp, &hi, &lo); in isf_extrapolation()
185 L_tmp = mpy_dpf_32(hi, lo, hi, lo); in isf_extrapolation()
Ddeemphasis_32.cpp131 int16 lo, hi; in deemphasis_32() local
142 lo = x_lo[1]; in deemphasis_32()
147 L_tmp += (((int32)lo) << 4) & 0xFFFF; in deemphasis_32()
152 lo = x_lo[i+1]; in deemphasis_32()
156 L_tmp += (((int32)lo) << 4) & 0xFFFF; in deemphasis_32()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dnumeric.h28 T NormalizePeriodicRange(T x, T lo, T hi) { in NormalizePeriodicRange() argument
29 T range_size = hi - lo; in NormalizePeriodicRange()
31 while (x < lo) { in NormalizePeriodicRange()
106 T RandomInRange(T lo, T hi,
111 std::uniform_real_distribution<T> distro(lo, hi);
116 T RandomInRange(T lo, T hi,
121 std::uniform_int_distribution<T> distro(lo, hi);
127 const Eigen::MatrixBase<Derived1>& lo, in RandomInRange() argument
135 result(row, col) = RandomInRange(lo(row, col), hi(row, col)); in RandomInRange()
148 T Clamp(T x, T lo, T hi) { in Clamp() argument
[all …]
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/
DHistogram.java67 Script.LaunchOptions lo = new Script.LaunchOptions(); in runTest() local
73 lo.setX(0, mSums.getType().getY()); in runTest()
74 mScript.forEach_pass1(lo); in runTest()
79 lo.setX(0, 1024); in runTest()
80 mScript.forEach_draw(mOutPixelsAllocation, lo); in runTest()
/frameworks/av/media/codecs/amrwb/enc/inc/
Doper_32b.h24 void VO_L_Extract (Word32 L_32, Word16 *hi, Word16 *lo);
25 Word32 L_Comp (Word16 hi, Word16 lo);
27 Word32 Mpy_32_16 (Word16 hi, Word16 lo, Word16 n);
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/
DHistogram.java61 Script.LaunchOptions lo = new Script.LaunchOptions(); in runTest() local
62 lo.setX(0, 1); in runTest()
71 lo.setX(0, 1024); in runTest()
72 mScript.forEach_draw(mOutPixelsAllocation, lo); in runTest()
/frameworks/native/libs/vr/libdvrcommon/tests/
Dnumeric_test.cpp54 Eigen::Vector3d lo(-3.0, -4.0, -5.0); in TEST() local
60 Eigen::Vector3d result = RandomInRange(lo, hi); in TEST()
63 EXPECT_LE(lo[j], result[j]); in TEST()
/frameworks/av/media/codecs/amrnb/enc/src/
Dl_comp.cpp142 Word32 L_Comp(Word16 hi, Word16 lo, Flag *pOverflow) in L_Comp() argument
156 temp32 = L_mac(L_32, lo, 1, pOverflow); in L_Comp()
Dlevinson.cpp644 Word16 lo; in Levinson() local
698 lo = (Word16)((t0 >> 1) - ((Word32)(hi) << 15)); in Levinson()
700 t0 = Mpy_32(*Rh, *Rl, hi, lo, pOverflow); /* Alpha in */ in Levinson()
792 lo = (Word16)((t0 >> 1) - ((Word32)(hi) << 15)); in Levinson()
794 t0 = (((Word32)alp_h * lo) >> 15); in Levinson()
/frameworks/av/media/libeffects/testlibs/
DAudioCoefInterpolator.cpp78 audio_coef_t AudioCoefInterpolator::interp(audio_coef_t lo, audio_coef_t hi, in interp() argument
80 int64_t delta = static_cast<int64_t>(hi-lo) * frac; in interp()
81 return lo + static_cast<audio_coef_t> (delta >> 32); in interp()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemGroup.java39 int lo = 0; in binarySearch() local
42 while (lo <= hi) { in binarySearch()
43 final int mid = (lo + hi) >>> 1; in binarySearch()
47 lo = mid + 1; in binarySearch()
56 return array.keyAt(lo - 1); in binarySearch()
/frameworks/base/core/java/android/net/metrics/
DIpReachabilityEvent.java96 int lo = eventType & 0x00ff; in toString() local
98 return String.format("IpReachabilityEvent(%s:%02x)", eventName, lo); in toString()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dstruct_field_simple.rscript31 rsDebug("argL.lo ", (unsigned)argL & ~0U);
32 rsDebug("simple.L.lo", (unsigned)simple.L & ~0U);
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dstruct_field_simple.rscript33 rsDebug("argL.lo ", (unsigned)argL & ~0U);
34 rsDebug("simple.L.lo", (unsigned)simple.L & ~0U);
/frameworks/base/core/java/com/android/internal/app/procstats/
DSparseMappingTable.java398 int lo = 0; in binarySearch() local
401 while (lo <= hi) { in binarySearch()
402 int mid = (lo + hi) >>> 1; in binarySearch()
406 lo = mid + 1; in binarySearch()
413 return ~lo; // id not present in binarySearch()

12