/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… 18 …%1 = tail call <4 x float> @llvm.x86.sse.min.ps(<4 x float> %in, <4 x float> %high) nounwind readn… 23 define <3 x float> @_Z5clampDv3_fS_S_(<3 x float> %in, <3 x float> %low, <3 x float> %high) nounwin… 26 %3 = shufflevector <3 x float> %high, <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… 35 %3 = shufflevector <2 x float> %high, <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 { 44 %3 = insertelement <4 x float> undef, float %high, i32 0 51 define <4 x float> @_Z5clampDv4_fff(<4 x float> %in, float %low, float %high) nounwind readonly { 56 %5 = insertelement <4 x float> undef, float %high, i32 0 [all …]
|
D | generic.c | 20 …rn short __attribute__((overloadable, always_inline)) rsClamp(short amount, short low, short high); 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 | asimd.ll | 108 define <4 x float> @_Z5clampDv4_fS_S_(<4 x float> %value, <4 x float> %low, <4 x float> %high) noun… 109 …%1 = tail call <4 x float> @llvm.aarch64.neon.fmin.v4f32(<4 x float> %value, <4 x float> %high) no… 114 define <4 x float> @_Z5clampDv4_fff(<4 x float> %value, float %low, float %high) nounwind readonly { 115 %_high = tail call <4 x float> @smear_4f(float %high) nounwind readnone 121 define <3 x float> @_Z5clampDv3_fS_S_(<3 x float> %value, <3 x float> %low, <3 x float> %high) noun… 124 …%_high = shufflevector <3 x float> %high, <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 { 133 %_high = tail call <4 x float> @smear_4f(float %high) nounwind readnone 141 define <2 x float> @_Z5clampDv2_fS_S_(<2 x float> %value, <2 x float> %low, <2 x float> %high) noun… 142 …%1 = tail call <2 x float> @llvm.aarch64.neon.fmin.v2f32(<2 x float> %value, <2 x float> %high) no… [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… 113 …%1 = tail call <4 x float> @llvm.arm.neon.vmins.v4f32(<4 x float> %value, <4 x float> %high) nounw… 118 define <4 x float> @_Z5clampDv4_fff(<4 x float> %value, float %low, float %high) nounwind readonly { 119 %_high = tail call <4 x float> @smear_4f(float %high) nounwind readnone 125 define <3 x float> @_Z5clampDv3_fS_S_(<3 x float> %value, <3 x float> %low, <3 x float> %high) noun… 128 …%_high = shufflevector <3 x float> %high, <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 { 137 %_high = tail call <4 x float> @smear_4f(float %high) nounwind readnone 145 define <2 x float> @_Z5clampDv2_fS_S_(<2 x float> %value, <2 x float> %low, <2 x float> %high) noun… 146 …%1 = tail call <2 x float> @llvm.arm.neon.vmins.v2f32(<2 x float> %value, <2 x float> %high) nounw… [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/av/include/media/ |
D | Interpolator.h | 70 auto high = this->lower_bound(x); in findY() local 72 if (high == this->end()) { in findY() 76 if (high == this->begin()) { in findY() 77 return high->second; in findY() 80 auto low = high; in findY() 86 return high->first == x ? high->second : low->second; in findY() 88 return ((high->first - x) * low->second + (x - low->first) * high->second) in findY() 89 / (high->first - low->first); in findY() 95 const S interval = high->first - low->first; in findY() 112 auto high2 = high; in findY() [all …]
|
/frameworks/native/opengl/libs/ETC1/ |
D | etc1.cpp | 201 etc1_uint32 high = (pIn[0] << 24) | (pIn[1] << 16) | (pIn[2] << 8) | pIn[3]; in etc1_decode_block() local 204 if (high & 2) { in etc1_decode_block() 206 int rBase = high >> 27; in etc1_decode_block() 207 int gBase = high >> 19; in etc1_decode_block() 208 int bBase = high >> 11; in etc1_decode_block() 210 r2 = convertDiff(rBase, high >> 24); in etc1_decode_block() 212 g2 = convertDiff(gBase, high >> 16); in etc1_decode_block() 214 b2 = convertDiff(bBase, high >> 8); in etc1_decode_block() 217 r1 = convert4To8(high >> 28); in etc1_decode_block() 218 r2 = convert4To8(high >> 24); in etc1_decode_block() [all …]
|
/frameworks/base/core/java/android/util/ |
D | MathUtils.java | 40 public static int constrain(int amount, int low, int high) { in constrain() argument 41 return amount < low ? low : (amount > high ? high : amount); in constrain() 44 public static long constrain(long amount, long low, long high) { in constrain() argument 45 return amount < low ? low : (amount > high ? high : amount); in constrain() 49 public static float constrain(float amount, float low, float high) { in constrain() argument 50 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/frameworks/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() 315 high = guess; in binarySearch() 318 if (high == start + len) in binarySearch() 320 else if (a[high] == key) in binarySearch() 321 return high; in binarySearch() 323 return ~high; in binarySearch()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioPeakingFilter.cpp | 103 void AudioPeakingFilter::getBandRange(uint32_t & low, uint32_t & high) const { in getBandRange() 109 high = mNiquistFreq; in getBandRange() 111 …high = static_cast<uint32_t>((static_cast<uint64_t>(mNominalFrequency) * Effects_exp2(halfBW + (16… in getBandRange() 112 if (CC_UNLIKELY(high > mNiquistFreq)) { in getBandRange() 113 high = mNiquistFreq; in getBandRange()
|
D | AudioEqualizer.cpp | 173 uint32_t & high) const { in getBandRange() 177 high = mpLowShelf->getFrequency(); in getBandRange() 180 high = mSampleRate * 500; in getBandRange() 182 mpPeakingFilters[band - 1].getBandRange(low, high); in getBandRange() 260 uint32_t high = mpHighShelf->getFrequency(); in getMostRelevantBand() local 261 if (targetFreq >= high) { in getMostRelevantBand() 268 high = freq; in getMostRelevantBand() 277 high = Effects_log2(high); in getMostRelevantBand() 279 if (high - targetFreq < targetFreq - low) { in getMostRelevantBand()
|
/frameworks/base/tools/incident_report/ |
D | formatter.cpp | 73 size_t high = PROTO_FORMAT_FIELDS_LENGTH - 1; in find_message_index() local 75 while (low <= high) { in find_message_index() 76 size_t mid = (low + high) >> 1; in find_message_index() 83 high = mid - 1; in find_message_index()
|
/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() 120 int high = a.getInt( in inflateChildElements() local 127 if (high < 0) { in inflateChildElements() 147 mLevelListState.addLevel(low, high, dr); in inflateChildElements() 197 public void addLevel(int low, int high, Drawable drawable) { in addLevel() argument 200 mHighs[pos] = high; in addLevel()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/ |
D | TemperatureColorStore.java | 178 int high = sTemperatureColorValues.length; in binarySearch() local 180 while (low <= high) { in binarySearch() 181 int mid = (low + high) >>> 1; in binarySearch() 187 high = mid - 1; // Neither val is NaN, thisVal is larger in binarySearch() 196 high = mid - 1; in binarySearch()
|
/frameworks/base/core/java/android/animation/ |
D | PathKeyframes.java | 79 int high = numPoints - 1; in getValue() local 81 while (low <= high) { in getValue() 82 int mid = (low + high) / 2; in getValue() 86 high = mid - 1; in getValue() 95 return interpolateInRange(fraction, high, low); in getValue()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ContrastColorUtil.java | 310 double low = 0, high = lab[0]; in findContrastColor() local 312 for (int i = 0; i < 15 && high - low > 0.00001; i++) { in findContrastColor() 313 final double l = (low + high) / 2; in findContrastColor() 322 high = l; in findContrastColor() 347 int low = startAlpha, high = 255; in findAlphaToMeetContrast() local 348 for (int i = 0; i < 15 && high - low > 0; i++) { in findAlphaToMeetContrast() 349 final int alpha = (low + high) / 2; in findAlphaToMeetContrast() 352 high = alpha; in findAlphaToMeetContrast() 357 return Color.argb(high, r, g, b); in findAlphaToMeetContrast() 381 float low = hsl[2], high = 1; in findContrastColorAgainstDark() local [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | AmbientBrightnessDayStats.java | 216 int high = mBucketBoundaries.length - 1; in getBucketIndex() local 217 while (low < high) { in getBucketIndex() 218 int mid = (low + high) / 2; in getBucketIndex() 225 high = mid - 1; in getBucketIndex()
|
/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/layoutlib/bridge/src/android/view/math/ |
D | Math3DHelper.java | 305 private static void quicksortCirc(float[] points, int low, int high, float[] ctr) { in quicksortCirc() argument 306 int i = low, j = high; in quicksortCirc() 307 int p = low + (high - low) / 2; in quicksortCirc() 326 if (i < high) { in quicksortCirc() 327 quicksortCirc(points, i, high, ctr); in quicksortCirc() 331 private static void quicksortX(float[] points, int low, int high) { in quicksortX() argument 332 int i = low, j = high; in quicksortX() 333 int p = low + (high - low) / 2; in quicksortX() 352 if (i < high) { in quicksortX() 353 quicksortX(points, i, high); in quicksortX()
|
/frameworks/base/core/tests/coretests/BinderProxyCountingTestService/src/com/android/frameworks/coretests/binderproxycountingtestservice/ |
D | BpcTestServiceCmdService.java | 58 public void setBinderProxyWatermarks(int high, int low) { 59 BinderInternal.nSetBinderProxyCountWatermarks(high, low);
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | AssertHelpers.java | 118 public static void assertInRange(float value, float low, float high) { 124 value, high), 125 value <= high);
|
/frameworks/base/cmds/incident/ |
D | main.cpp | 146 ssize_t high = INCIDENT_SECTION_COUNT - 1; in find_section() local 148 while (low <= high) { in find_section() 149 ssize_t mid = (low + high) / 2; in find_section() 156 high = mid - 1; in find_section()
|
/frameworks/base/core/java/com/android/internal/graphics/ |
D | ColorUtils.java | 560 private static float constrain(float amount, float low, float high) { in constrain() argument 561 return amount < low ? low : (amount > high ? high : amount); in constrain() 564 private static int constrain(int amount, int low, int high) { in constrain() argument 565 return amount < low ? low : (amount > high ? high : amount); in constrain()
|
/frameworks/base/core/java/android/view/ |
D | GhostView.java | 245 int high = overlayViewGroup.getChildCount() - 1; in getInsertIndex() local 247 while (low <= high) { in getInsertIndex() 248 int mid = (low + high) / 2; in getInsertIndex() 255 high = mid - 1; in getInsertIndex()
|