Searched refs:shift (Results 1 - 25 of 55) sorted by relevance

123

/frameworks/av/media/libeffects/lvm/lib/Common/src/
H A DInt16LShiftToInt32_16x32.c31 LVM_INT16 shift )
40 *dst = ( ((LVM_INT32)*src) << shift);
H A DInt32RShiftToInt16_Sat_32x16.c31 LVM_INT16 shift )
38 temp = *src >> shift;
/frameworks/compile/mclinker/lib/Support/
H A DLEB128.cpp117 unsigned shift; local
121 shift = 28;
127 result |= (static_cast<uint64_t>(byte & 0x7f) << shift);
128 shift += 7;
165 unsigned shift; local
168 shift = 28;
171 result |= (static_cast<uint64_t>(byte & 0x7f) << shift);
172 shift += 7;
187 unsigned shift = 0; local
194 result |= (static_cast<uint64_t>(byte & 0x7f) << shift);
208 unsigned shift = 0; local
[all...]
/frameworks/av/include/media/stagefright/foundation/
H A DFlagged.h127 * \param shift DO NO USE. used internally
132 static constexpr Flag minMask(Flag maxValue, int shift=sizeof(Flag) * 4) {
135 return shift ? minMask<Flag>(Flag(maxValue | (maxValue >> shift)), shift >> 1) : maxValue;
141 * This method helps around the C-language limitation, when left-shift of a negative value with
144 * \param value value to shift
145 * \param shift amount of shift
149 static constexpr IntFlag lshift(Flag value, int shift) { argument
168 canCombine( Flag mask, IntFlag baseMask, Flag sharedMask, int shift, int baseShift, IntFlag effectiveMask) argument
236 incShift(int shift) argument
272 static constexpr int shift = 0; ///<left shift of flags in a potentially flagged class member in struct:android::_Flagged_helper::mask_of
323 static constexpr int shift = T::sFlagShift; member in struct:android::_Flagged_helper::mask_of
393 setFlagsHelper(IntFlag mask, int shift, IntFlag flags) argument
[all...]
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
H A DFlagged.h127 * \param shift DO NO USE. used internally
132 static constexpr Flag minMask(Flag maxValue, int shift=sizeof(Flag) * 4) {
135 return shift ? minMask<Flag>(Flag(maxValue | (maxValue >> shift)), shift >> 1) : maxValue;
141 * This method helps around the C-language limitation, when left-shift of a negative value with
144 * \param value value to shift
145 * \param shift amount of shift
149 static constexpr IntFlag lshift(Flag value, int shift) { argument
168 canCombine( Flag mask, IntFlag baseMask, Flag sharedMask, int shift, int baseShift, IntFlag effectiveMask) argument
236 incShift(int shift) argument
272 static constexpr int shift = 0; ///<left shift of flags in a potentially flagged class member in struct:android::_Flagged_helper::mask_of
323 static constexpr int shift = T::sFlagShift; member in struct:android::_Flagged_helper::mask_of
393 setFlagsHelper(IntFlag mask, int shift, IntFlag flags) argument
[all...]
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/
H A DFlagged.h127 * \param shift DO NO USE. used internally
132 static constexpr Flag minMask(Flag maxValue, int shift=sizeof(Flag) * 4) {
135 return shift ? minMask<Flag>(Flag(maxValue | (maxValue >> shift)), shift >> 1) : maxValue;
141 * This method helps around the C-language limitation, when left-shift of a negative value with
144 * \param value value to shift
145 * \param shift amount of shift
149 static constexpr IntFlag lshift(Flag value, int shift) { argument
168 canCombine( Flag mask, IntFlag baseMask, Flag sharedMask, int shift, int baseShift, IntFlag effectiveMask) argument
236 incShift(int shift) argument
272 static constexpr int shift = 0; ///<left shift of flags in a potentially flagged class member in struct:android::_Flagged_helper::mask_of
323 static constexpr int shift = T::sFlagShift; member in struct:android::_Flagged_helper::mask_of
393 setFlagsHelper(IntFlag mask, int shift, IntFlag flags) argument
[all...]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
H A Dautocorr.c40 Word32 i, norm, shift; local
71 shift = 4 - (norm >> 1);
72 if(shift > 0)
77 *p1 = vo_shr_r(*p1, shift);
79 *p1 = vo_shr_r(*p1, shift);
81 *p1 = vo_shr_r(*p1, shift);
83 *p1 = vo_shr_r(*p1, shift);
H A DvoAMRWBEnc.c205 Word16 tmp, gain1, gain2, exp, Q_new, mu, shift, max; local
302 shift = Q_MAX;
305 shift = norm_s(tmp) - 1;
306 if (shift < 0)
308 shift = 0;
310 if (shift > Q_MAX)
312 shift = Q_MAX;
315 Q_new = shift;
327 st->Q_max[0] = shift;
462 shift
[all...]
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
H A Dhp_max.cpp140 Word16 shift, shift1, shift2;
196 shift = sub(shift1, shift2);
198 if (shift >= 0)
200 *cor_hp_max = shr(cor_max, shift); // Q15
204 *cor_hp_max = shl(cor_max, negate(shift)); // Q15
251 Word16 shift, shift1, shift2; local
319 shift = sub(shift1, shift2, pOverflow);
321 if (shift >= 0)
323 *cor_hp_max = shr(cor_max, shift, pOverflow); /* Q15 */
327 *cor_hp_max = shl(cor_max, negate(shift), pOverflo
[all...]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
H A Dhoming_amr_wb_dec.cpp250 int16 i, j, tmp, shift; local
289 shift = 15 - tmp;
290 param[i] = shl_int16(param[i], shift);
320 shift = 0;
335 tmp >>= shift; local
336 tmp = shl_int16(tmp, shift);
/frameworks/base/tests/WindowAnimationJank/src/android/windowanimationjank/
H A DElementLayoutActivity.java141 int shift = 8 * i;
142 int colorB = (BACKGROUND_COLOR >> shift) & 0xff;
143 int colorI = (INDICATOR_COLOR >> shift) & 0xff;
149 background |= (color << shift);
/frameworks/opt/net/voip/src/jni/rtp/
H A DEchoSuppressor.cpp46 int shift = 0; local
47 while ((sampleCount >> shift) > 1 && (tailLength >> shift) > 256) {
48 ++shift;
51 mShift = shift + 4;
52 mScale = 1 << shift;
54 mWindowSize = sampleCount >> shift;
55 mTailLength = tailLength >> shift;
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
H A Dc_g_aver.cpp286 Word16 tmp[M], tmp1, tmp2, shift1, shift2, shift;
309 shift = sub(add(2, shift1), shift2);
310 if (shift >= 0)
312 tmp[i] = shr(tmp[i], shift); // Q15+Qn-Qm-Qx=Q13
316 tmp[i] = shl(tmp[i], negate(shift)); // Q15+Qn-Qm-Qx=Q13
490 Word16 shift; local
524 shift = 2 + shift1 - shift2;
526 if (shift >= 0)
528 *(tmp + i) = shr(*(tmp + i), shift, pOverflow);
533 *(tmp + i) = shl(*(tmp + i), negate(shift), pOverflo
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmSmsTest.java225 // Turkish locking shift table
231 // no locking shift table defined for Spanish
234 // Portuguese locking shift table
348 decodeSingle(1); // Turkish locking shift table
349 decodeSingle(3); // Portuguese locking shift table
367 int shift = bitOffset % 8;
369 septets[byteOffset] |= v << shift;
371 if (shift > 1) {
372 septets[byteOffset + 1] = (byte) (v >> (8 - shift));
397 // Turkish single shift extensio
[all...]
/frameworks/compile/mclinker/lib/Target/Hexagon/
H A DHexagonRelocator.cpp513 uint32_t shift = 0; local
521 shift = 16;
545 shift = 6;
565 if ((shift != 0) && (result % alignment != 0))
568 result >>= shift;
589 uint32_t shift = 0; local
596 shift = 2;
603 shift = 2;
610 shift = 2;
617 shift
773 uint32_t shift = 0; local
853 uint32_t shift = 0; local
920 uint32_t shift = 0; local
[all...]
/frameworks/native/opengl/libagl/
H A Dmatrix.h193 // that have been shifted right by 'shift' bits relative to normal
198 GLint shift,
213 "r"(shift),
227 accum = (accum << shift) + c;
238 GLint shift,
254 "r"(shift),
269 accum = (accum << shift) + c;
279 GLint shift,
295 "r"(shift),
310 accum = (accum << shift)
195 mla3a16( GLfixed a0, int32_t b1b0, GLfixed a1, GLfixed a2, int32_t b2, GLint shift, GLfixed c) argument
234 mla3a16_btb( GLfixed a0, GLfixed a1, GLfixed a2, int32_t b1b0, int32_t xxb2, GLint shift, GLfixed c) argument
275 mla3a16_btt( GLfixed a0, GLfixed a1, GLfixed a2, int32_t b1b0, int32_t b2xx, GLint shift, GLfixed c) argument
[all...]
/frameworks/base/cmds/statsd/src/
H A DFieldValue.h138 int32_t shift = 8 * (kMaxLogDepth - depth); local
139 int32_t mask = 0xff << shift;
141 return (field & mask) >> shift;
233 int32_t shift = 8 * (kMaxLogDepth - depth); local
234 int32_t mask = 0xff << shift;
236 return (field & mask) >> shift;
/frameworks/base/libs/protoutil/src/
H A DEncodedBuffer.cpp229 uint64_t val = 0, shift = 0; local
233 val |= (UINT64_C(0x7F) & byte) << shift;
235 shift += 7;
347 uint64_t val = 0, shift = 0; local
350 val |= (INT64_C(0x7F) & byte) << shift;
352 shift += 7;
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DSaturateFilter.java44 "uniform float shift;\n" +
49 " float kv = dot(color.rgb, weights) + shift;\n" +
141 float shift = 1.0f / 255.0f;
145 mBenProgram.setHostValue("shift", shift);
/frameworks/av/media/libeffects/visualizer/
H A DEffectVisualizer.cpp352 int32_t shift; local
357 shift = 32;
363 if (shift > clz) shift = clz;
366 // translate to a shift of 8 (for converting 16 bit to 8 bit)
367 shift = 25 - shift;
369 if (shift < 3) {
370 shift = 3;
373 shift
[all...]
/frameworks/ex/common/java/com/android/common/
H A DOperationScheduler.java178 int shift = errorCount-1;
181 if (shift > 30) shift = 30;
184 (((long)options.backoffExponentialMillis) << shift);
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DGsmAlphabet.java61 * Using a non-default language locking shift table OR single shift table
67 * Using a non-default language locking shift table AND single shift table
115 * The GSM national language shift table to use, or 0 for the default 7-bit extension table.
291 * @param languageShiftTable the 7 bit single shift language table, or 0 for the default
348 * @param languageShiftTable the 7 bit single shift language table, or 0 for the default
374 * @param languageShiftTable the 7 bit single shift language table, or 0 for the default
434 int shift = bitOffset % 8;
436 packedChars[++byteOffset] |= value << shift;
[all...]
/frameworks/av/media/libeffects/lvm/lib/Common/lib/
H A DVectorArithmetic.h233 LVM_INT16 shift );
238 LVM_INT16 shift );
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Dfastquant_inline.h41 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
46 q_value >>= shift; //q_value = (((coeff - QPdiv2)*q_scale)>>LSL ); local
187 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
194 mov coeff, q_value, asr shift /*smull tmp, coeff, q_scale, coeff*/
282 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
289 mov coeff, q_value, asr shift /*smull tmp, coeff, q_scale, coeff*/
449 __inline int32 coeff_quant(int32 coeff, int32 q_scale, int32 shift) argument
455 register int32 ss = shift;
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DTimerRecordingAction.java153 int shift = (3 - i) * 8;
154 result |= ((data[i] & 0xFF) << shift);

Completed in 553 milliseconds

123