/frameworks/rs/driver/runtime/arch/ |
D | clamp.c | 25 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 26 return amount < low ? low : (amount > high ? high : amount); \ 46 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 48 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 49 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 53 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 55 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 56 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 57 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \ 61 extern T##4 __attribute__((overloadable)) clamp(T##4 amount, T##4 low, T##4 high) { \ [all …]
|
D | x86_sse2.ll | 17 define <4 x float> @_Z5clampDv4_fS_S_(<4 x float> %in, <4 x float> %low, <4 x float> %high) nounwin… 19 …%2 = tail call <4 x float> @llvm.x86.sse.max.ps(<4 x float> %1, <4 x float> %low) nounwind readnone 23 define <3 x float> @_Z5clampDv3_fS_S_(<3 x float> %in, <3 x float> %low, <3 x float> %high) nounwin… 25 %2 = shufflevector <3 x float> %low, <3 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3> 32 define <2 x float> @_Z5clampDv2_fS_S_(<2 x float> %in, <2 x float> %low, <2 x float> %high) nounwin… 34 %2 = shufflevector <2 x float> %low, <2 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3> 41 define float @_Z5clampfff(float %in, float %low, float %high) nounwind readnone alwaysinline { 43 %2 = insertelement <4 x float> undef, float %low, i32 0 51 define <4 x float> @_Z5clampDv4_fff(<4 x float> %in, float %low, float %high) nounwind readonly { 52 %1 = insertelement <4 x float> undef, float %low, i32 0 [all …]
|
D | generic.c | 20 extern short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short hi… 30 extern T __attribute__((overloadable)) clamp(T amount, T low, T high) { \ 31 return amount < low ? low : (amount > high ? high : amount); \ 34 extern T##2 __attribute__((overloadable)) clamp(T##2 amount, T##2 low, T##2 high) { \ 36 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 37 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 41 extern T##3 __attribute__((overloadable)) clamp(T##3 amount, T##3 low, T##3 high) { \ 43 r.x = amount.x < low.x ? low.x : (amount.x > high.x ? high.x : amount.x); \ 44 r.y = amount.y < low.y ? low.y : (amount.y > high.y ? high.y : amount.y); \ 45 r.z = amount.z < low.z ? low.z : (amount.z > high.z ? high.z : amount.z); \ [all …]
|
D | neon.ll | 112 define <4 x float> @_Z5clampDv4_fS_S_(<4 x float> %value, <4 x float> %low, <4 x float> %high) noun… 114 …%2 = tail call <4 x float> @llvm.arm.neon.vmaxs.v4f32(<4 x float> %1, <4 x float> %low) nounwind r… 118 define <4 x float> @_Z5clampDv4_fff(<4 x float> %value, float %low, float %high) nounwind readonly { 120 %_low = tail call <4 x float> @smear_4f(float %low) nounwind readnone 125 define <3 x float> @_Z5clampDv3_fS_S_(<3 x float> %value, <3 x float> %low, <3 x float> %high) noun… 127 %_low = shufflevector <3 x float> %low, <3 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3> 135 define <3 x float> @_Z5clampDv3_fff(<3 x float> %value, float %low, float %high) nounwind readonly { 138 %_low = tail call <4 x float> @smear_4f(float %low) nounwind readnone 145 define <2 x float> @_Z5clampDv2_fS_S_(<2 x float> %value, <2 x float> %low, <2 x float> %high) noun… 147 …%2 = tail call <2 x float> @llvm.arm.neon.vmaxs.v2f32(<2 x float> %1, <2 x float> %low) nounwind r… [all …]
|
D | asimd.ll | 108 define <4 x float> @_Z5clampDv4_fS_S_(<4 x float> %value, <4 x float> %low, <4 x float> %high) noun… 110 …%2 = tail call <4 x float> @llvm.aarch64.neon.fmax.v4f32(<4 x float> %1, <4 x float> %low) nounwin… 114 define <4 x float> @_Z5clampDv4_fff(<4 x float> %value, float %low, float %high) nounwind readonly { 116 %_low = tail call <4 x float> @smear_4f(float %low) nounwind readnone 121 define <3 x float> @_Z5clampDv3_fS_S_(<3 x float> %value, <3 x float> %low, <3 x float> %high) noun… 123 %_low = shufflevector <3 x float> %low, <3 x float> undef, <4 x i32> <i32 0, i32 1, i32 2, i32 3> 131 define <3 x float> @_Z5clampDv3_fff(<3 x float> %value, float %low, float %high) nounwind readonly { 134 %_low = tail call <4 x float> @smear_4f(float %low) nounwind readnone 141 define <2 x float> @_Z5clampDv2_fS_S_(<2 x float> %value, <2 x float> %low, <2 x float> %high) noun… 143 …%2 = tail call <2 x float> @llvm.aarch64.neon.fmax.v2f32(<2 x float> %1, <2 x float> %low) nounwin… [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsicInlines.h | 85 static inline int4 clamp(int4 amount, int low, int high) { in CVT_FUNC() 87 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in CVT_FUNC() 88 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in CVT_FUNC() 89 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in CVT_FUNC() 90 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in CVT_FUNC() 94 static inline float4 clamp(float4 amount, float low, float high) { in clamp() argument 96 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp() 97 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp() 98 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp() 99 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp() [all …]
|
/frameworks/support/design/base/android/support/design/widget/ |
D | MathUtils.java | 21 static int constrain(int amount, int low, int high) { in constrain() argument 22 return amount < low ? low : (amount > high ? high : amount); in constrain() 25 static float constrain(float amount, float low, float high) { in constrain() argument 26 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/frameworks/volley/src/test/java/com/android/volley/ |
D | RequestTest.java | 31 TestRequest low = new TestRequest(Priority.LOW); in compareTo() local 32 low.setSequence(sequence++); in compareTo() 41 assertTrue(low.compareTo(high) > 0); in compareTo() 42 assertTrue(high.compareTo(low) < 0); in compareTo() 43 assertTrue(low.compareTo(low2) < 0); in compareTo() 44 assertTrue(low.compareTo(immediate) > 0); in compareTo()
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 38 public static int constrain(int amount, int low, int high) { in constrain() argument 39 return amount < low ? low : (amount > high ? high : amount); in constrain() 42 public static long constrain(long amount, long low, long high) { in constrain() argument 43 return amount < low ? low : (amount > high ? high : amount); in constrain() 46 public static float constrain(float amount, float low, float high) { in constrain() argument 47 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/frameworks/base/core/java/android/text/ |
D | AndroidBidi.java | 167 for (int low = i, hi = e - 2; low < hi; low += 2, hi -= 2) { in directions() 168 int x = ld[low]; ld[low] = ld[hi]; ld[hi] = x; in directions() 169 x = ld[low+1]; ld[low+1] = ld[hi+1]; ld[hi+1] = x; in directions()
|
D | Layout.java | 1101 int high = getLineCount(), low = -1, guess; in getLineForVertical() local 1103 while (high - low > 1) { in getLineForVertical() 1104 guess = (high + low) / 2; in getLineForVertical() 1109 low = guess; in getLineForVertical() 1112 if (low < 0) in getLineForVertical() 1115 return low; in getLineForVertical() 1124 int high = getLineCount(), low = -1, guess; in getLineForOffset() local 1126 while (high - low > 1) { in getLineForOffset() 1127 guess = (high + low) / 2; in getLineForOffset() 1132 low = guess; in getLineForOffset() [all …]
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioEqualizer.cpp | 172 void AudioEqualizer::getBandRange(int band, uint32_t & low, in getBandRange() argument 176 low = 0; in getBandRange() 179 low = mpHighShelf->getFrequency(); in getBandRange() 182 mpPeakingFilters[band - 1].getBandRange(low, high); in getBandRange() 256 uint32_t low = mpLowShelf->getFrequency(); in getMostRelevantBand() local 257 if (targetFreq <= low) { in getMostRelevantBand() 272 low = freq; in getMostRelevantBand() 276 low = Effects_log2(low); in getMostRelevantBand() 279 if (high - targetFreq < targetFreq - low) { in getMostRelevantBand()
|
D | AudioPeakingFilter.cpp | 103 void AudioPeakingFilter::getBandRange(uint32_t & low, uint32_t & high) const { in getBandRange() argument 107 …low = static_cast<uint32_t>((static_cast<uint64_t>(mNominalFrequency) * Effects_exp2(-halfBW + (16… in getBandRange()
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | LevelListDrawable.java | 68 public void addLevel(int low, int high, Drawable drawable) { in addLevel() argument 70 mLevelListState.addLevel(low, high, drawable); in addLevel() 100 int low = 0; in inflateChildElements() local 118 low = a.getInt( in inflateChildElements() 147 mLevelListState.addLevel(low, high, dr); in inflateChildElements() 197 public void addLevel(int low, int high, Drawable drawable) { in addLevel() argument 199 mLows[pos] = low; in addLevel()
|
/frameworks/native/opengl/libs/ETC1/ |
D | etc1.cpp | 168 etc1_uint32 low, bool second, bool flipped) { in decode_subblock() argument 188 int offset = ((low >> k) & 1) | ((low >> (k + 15)) & 2); in decode_subblock() 202 etc1_uint32 low = (pIn[4] << 24) | (pIn[5] << 16) | (pIn[6] << 8) | pIn[7]; in etc1_decode_block() local 229 decode_subblock(pOut, r1, g1, b1, tableA, low, false, flipped); in etc1_decode_block() 230 decode_subblock(pOut, r2, g2, b2, tableB, low, true, flipped); in etc1_decode_block() 235 etc1_uint32 low; member 350 &pCompressed->low, yy + x * 4, pModifierTable); in etc_encode_subblock_helper() 365 &pCompressed->low, y + xx * 4, pModifierTable); in etc_encode_subblock_helper() 437 pCompressed->low = 0; in etc_encode_block_helper() 450 temp.low = 0; in etc_encode_block_helper() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | PathKeyframes.java | 78 int low = 0; in getValue() local 81 while (low <= high) { in getValue() 82 int mid = (low + high) / 2; in getValue() 88 low = mid + 1; in getValue() 95 return interpolateInRange(fraction, high, low); in getValue()
|
/frameworks/av/media/libstagefright/webm/ |
D | EbmlUtil.cpp | 55 int32_t low = u; in numberOfTrailingZeros() local 56 return low !=0 ? numberOfTrailingZeros32(low) in numberOfTrailingZeros()
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
D | omxVCM4P2_DecodePadMV_PVOP.c | 111 OMX_S16 high, low, range; in omxVCM4P2_DecodePadMV_PVOP() local 150 low = ( (-32) * scaleFactor); in omxVCM4P2_DecodePadMV_PVOP() 226 if ( pDstMVCurMB[iBlk].dx < low ) in omxVCM4P2_DecodePadMV_PVOP() 235 if ( pDstMVCurMB[iBlk].dy < low ) in omxVCM4P2_DecodePadMV_PVOP()
|
/frameworks/av/media/img_utils/include/img_utils/ |
D | DngUtils.h | 34 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) argument
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
D | SparseWeakArray.java | 307 int high = start + len, low = start - 1, guess; in binarySearch() local 309 while (high - low > 1) { in binarySearch() 310 guess = (high + low) / 2; in binarySearch() 313 low = guess; in binarySearch()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | NotificationColorUtil.java | 252 double low = 0, high = lab[0]; in findContrastColor() local 254 for (int i = 0; i < 15 && high - low > 0.00001; i++) { in findContrastColor() 255 final double l = (low + high) / 2; in findContrastColor() 262 low = l; in findContrastColor() 267 return ColorUtilsFromCompat.LABToColor(low, a, b); in findContrastColor() 641 private static int constrain(int amount, int low, int high) { in constrain() argument 642 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/frameworks/base/core/java/android/view/ |
D | GhostView.java | 237 int low = firstGhost; in getInsertIndex() local 240 while (low <= high) { in getInsertIndex() 241 int mid = (low + high) / 2; in getInsertIndex() 246 low = mid + 1; in getInsertIndex() 253 return low; in getInsertIndex()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | AssertHelpers.java | 118 public static void assertInRange(float value, float low, float high) { 120 String.format("Value %s must be greater or equal to %s, but was lower", value, low), 121 value >= low);
|
/frameworks/base/libs/hwui/ |
D | SpotShadow.h | 53 static void quicksortCirc(Vector2* points, int low, int high, const Vector2& center); 54 static void quicksortX(Vector2* points, int low, int high);
|
/frameworks/support/core-utils/java/android/support/v4/graphics/ |
D | ColorUtils.java | 516 private static float constrain(float amount, float low, float high) { in constrain() argument 517 return amount < low ? low : (amount > high ? high : amount); in constrain() 520 private static int constrain(int amount, int low, int high) { in constrain() argument 521 return amount < low ? low : (amount > high ? high : amount); in constrain()
|