/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 …]
|
/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 | 80 auto low = high; in findY() local 81 --low; 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() 98 if (mMemo.count(low->first) != 0) { in findY() 99 const S t = (x - low->first) / interval; in findY() 101 const auto &memo = mMemo[low->first]; in findY() 102 return low->second + std::get<0>(memo) * t in findY() [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/ |
D | json_escaping.cc | 138 inline uint32 ToCodePoint(uint16 high, uint16 low) { in ToCodePoint() argument 144 return (high << 10) + low + in ToCodePoint() 265 uint16 low = ToLowSurrogate(cp); in ToSurrogateHex() local 268 buffer[11] = kHex[low & 0x0f]; in ToSurrogateHex() 269 low >>= 4; in ToSurrogateHex() 270 buffer[10] = kHex[low & 0x0f]; in ToSurrogateHex() 271 low >>= 4; in ToSurrogateHex() 272 buffer[9] = kHex[low & 0x0f]; in ToSurrogateHex() 273 low >>= 4; in ToSurrogateHex() 274 buffer[8] = kHex[low & 0x0f]; in ToSurrogateHex()
|
/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/base/tools/incident_report/ |
D | formatter.cpp | 72 size_t low = 0; in find_message_index() local 75 while (low <= high) { in find_message_index() 76 size_t mid = (low + high) >> 1; in find_message_index() 81 low = mid + 1; in find_message_index()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/statusbar/hvac/ |
D | TemperatureColorStore.java | 177 int low = 0; in binarySearch() local 180 while (low <= high) { in binarySearch() 181 int mid = (low + high) >>> 1; in binarySearch() 185 low = mid + 1; // Neither val is NaN, thisVal is smaller in binarySearch() 194 low = mid + 1; in binarySearch() 200 return -(low + 1); // key not found. in binarySearch()
|
/frameworks/base/core/java/android/text/ |
D | AndroidBidi.java | 212 for (int low = i, hi = e - 2; low < hi; low += 2, hi -= 2) { in directions() 213 int x = ld[low]; ld[low] = ld[hi]; ld[hi] = x; in directions() 214 x = ld[low+1]; ld[low+1] = ld[hi+1]; ld[hi+1] = x; in directions()
|
/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()
|
/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/ml/nn/runtime/test/fuzzing/operation_signatures/ |
D | OperationSignatureUtils.h | 95 inline void uniform(T low, T up, RandomOperand* op) { 98 for (uint32_t i = 0; i < len; i++) data[i] = getUniform(low, up); 294 #define PARAMETER_VEC_RANGE(opType, len, low, up) \ 297 PARAMETER_FILL_BUFFER_HELPER(opType, len, getUniform, low, up); \ 302 #define PARAMETER_RANGE(opType, low, up) PARAMETER_VEC_RANGE(opType, 1, low, up) 307 #define PARAMETER_FLOAT_RANGE(low, up) \ 312 PARAMETER_FILL_BUFFER_HELPER(Type::FLOAT16, 1, getUniform, low, up); \ 314 PARAMETER_FILL_BUFFER_HELPER(Type::FLOAT32, 1, getUniform, low, up); \ 346 #define RANDOM_INT_RANGE(low, up) \ 350 op->randomBuffer = {RandomVariable((low), (up))}; \
|
D | BoundingBox.cpp | 69 T low = getUniform<T>(0, maxW); in fillRoiTensor() local 70 op->value<T>(i * 4) = low; in fillRoiTensor() 71 op->value<T>(i * 4 + 2) = getUniform<T>(low, maxW); in fillRoiTensor() 72 low = getUniform<T>(0, maxH); in fillRoiTensor() 73 op->value<T>(i * 4 + 1) = low; in fillRoiTensor() 74 op->value<T>(i * 4 + 3) = getUniform<T>(low, maxH); in fillRoiTensor()
|
/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/base/core/java/android/hardware/display/ |
D | AmbientBrightnessDayStats.java | 213 int low = 0; in getBucketIndex() local 215 while (low < high) { in getBucketIndex() 216 int mid = (low + high) / 2; in getBucketIndex() 221 low = mid + 1; in getBucketIndex() 226 return low; in getBucketIndex()
|
/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() 320 low = l; in findContrastColor() 325 return ColorUtilsFromCompat.LABToColor(low, a, b); 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() 354 low = alpha; in findAlphaToMeetContrast() 381 float low = hsl[2], high = 1; in findContrastColorAgainstDark() local [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ScoringParams.java | 110 int low = WifiInfo.MIN_RSSI; in validateRssiArray() local 113 validateRange(rssi[i], low, high); in validateRssiArray() 114 low = rssi[i]; in validateRssiArray() 118 private void validateRange(int k, int low, int high) throws IllegalArgumentException { in validateRange() argument 119 if (k < low || k > high) { in validateRange() 125 int low = 0; in validateOrderedNonNegativeArray() local 127 if (a[i] < low) { in validateOrderedNonNegativeArray() 130 low = a[i]; in validateOrderedNonNegativeArray()
|
/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/include/media/nblog/ |
D | PerformanceAnalysis.h | 49 const double low; // TODO template type member 70 Histogram(double binSize, size_t numBins, double low = 0.) 71 : mBinSize(binSize), mNumBins(numBins), mLow(low), mBins(mNumBins + 2) {} in mBinSize() 74 : Histogram(c.binSize, c.numBins, c.low) {} in Histogram()
|
/frameworks/av/media/libnblog/include/media/nblog/ |
D | PerformanceAnalysis.h | 49 const double low; // TODO template type member 70 Histogram(double binSize, size_t numBins, double low = 0.) 71 : mBinSize(binSize), mNumBins(numBins), mLow(low), mBins(mNumBins + 2) {} in mBinSize() 74 : Histogram(c.binSize, c.numBins, c.low) {} in Histogram()
|
/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() 323 if (low < j) { in quicksortCirc() 324 quicksortCirc(points, low, j, 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() 349 if (low < j) { in quicksortX() 350 quicksortX(points, low, j); in quicksortX()
|
/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/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()
|