Home
last modified time | relevance | path

Searched refs:high (Results 1 – 25 of 107) sorted by relevance

12345

/frameworks/rs/driver/runtime/arch/
Dclamp.c25 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 …]
Dx86_sse2.ll17 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 …]
Dgeneric.c20 …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 …]
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicInlines.h85 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/rs/toolkit/
DUtils.h92 inline int4 clamp(int4 amount, int low, int high) { in clamp() argument
94 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
95 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
96 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
97 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
101 inline float4 clamp(float4 amount, float low, float high) { in clamp() argument
103 r.x = amount.x < low ? low : (amount.x > high ? high : amount.x); in clamp()
104 r.y = amount.y < low ? low : (amount.y > high ? high : amount.y); in clamp()
105 r.z = amount.z < low ? low : (amount.z > high ? high : amount.z); in clamp()
106 r.w = amount.w < low ? low : (amount.w > high ? high : amount.w); in clamp()
[all …]
/frameworks/av/include/media/
DInterpolator.h64 auto high = this->lower_bound(x); in findY() local
66 if (high == this->end()) { in findY()
70 if (high == this->begin()) { in findY()
71 return high->second; in findY()
74 auto low = high; in findY()
80 return high->first == x ? high->second : low->second; in findY()
82 return ((high->first - x) * low->second + (x - low->first) * high->second) in findY()
83 / (high->first - low->first); in findY()
89 const S interval = high->first - low->first; in findY()
106 auto high2 = high; in findY()
[all …]
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp201 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/libs/binary_translation/runtime_primitives/include/berberis/runtime_primitives/
Dtable_of_tables.h65 AllocateIfNecessary(split_key.high); in Put()
67 main_table_[split_key.high][split_key.low] = value; in Put()
68 return &main_table_[split_key.high][split_key.low]; in Put()
73 return main_table_[split_key.high][split_key.low]; in Get()
83 AllocateIfNecessary(split_key.high); in GetPointer()
85 return &main_table_[split_key.high][split_key.low]; in GetPointer()
100 explicit SplitKey(Key key) : low(key & (kTableSize - 1)), high(key >> kTableBits) { in SplitKey()
101 CHECK_EQ(high & ~(kTableSize - 1), 0); in SplitKey()
105 const uint32_t high; member
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
DSparseWeakArray.java308 int high = start + len, low = start - 1, guess; in binarySearch() local
310 while (high - low > 1) { in binarySearch()
311 guess = (high + low) / 2; in binarySearch()
316 high = guess; in binarySearch()
319 if (high == start + len) in binarySearch()
321 else if (a[high] == key) in binarySearch()
322 return high; in binarySearch()
324 return ~high; in binarySearch()
/frameworks/av/media/libeffects/testlibs/
DAudioPeakingFilter.cpp103 void AudioPeakingFilter::getBandRange(uint32_t & low, uint32_t & high) const { in getBandRange()
109 high = mNiquistFreq; in getBandRange()
111high = 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()
DAudioEqualizer.cpp173 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/core/java/android/util/
DMathUtils.java41 public static int constrain(int amount, int low, int high) { in constrain() argument
42 return amount < low ? low : (amount > high ? high : amount); in constrain()
45 public static long constrain(long amount, long low, long high) { in constrain() argument
46 return amount < low ? low : (amount > high ? high : amount); in constrain()
50 public static float constrain(float amount, float low, float high) { in constrain() argument
51 return amount < low ? low : (amount > high ? high : amount); in constrain()
/frameworks/base/tools/incident_report/
Dformatter.cpp73 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/
DLevelListDrawable.java68 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/services/people/java/com/android/server/people/data/
DEventList.java130 int high = mEvents.size() - 1; in firstIndexOnOrAfter() local
131 while (low <= high) { in firstIndexOnOrAfter()
132 int mid = (low + high) >>> 1; in firstIndexOnOrAfter()
134 high = mid - 1; in firstIndexOnOrAfter()
/frameworks/base/core/java/android/animation/
DPathKeyframes.java79 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/
DContrastColorUtil.java398 double low = 0, high = lab[0]; in findContrastColor() local
400 for (int i = 0; i < 15 && high - low > 0.00001; i++) { in findContrastColor()
401 final double l = (low + high) / 2; in findContrastColor()
410 high = l; in findContrastColor()
435 int low = startAlpha, high = 255; in findAlphaToMeetContrast() local
436 for (int i = 0; i < 15 && high - low > 0; i++) { in findAlphaToMeetContrast()
437 final int alpha = (low + high) / 2; in findAlphaToMeetContrast()
440 high = alpha; in findAlphaToMeetContrast()
445 return Color.argb(high, r, g, b); in findAlphaToMeetContrast()
469 float low = hsl[2], high = 1; in findContrastColorAgainstDark() local
[all …]
/frameworks/base/core/java/com/android/internal/graphics/cam/
DCam.java403 float high = chroma; in getInt()
413 while (Math.abs(low - high) >= CHROMA_SEARCH_ENDPOINT) { in getInt()
428 mid = low + (high - low) / 2.0f; in getInt()
435 high = mid; in getInt()
442 mid = low + (high - low) / 2.0f; in getInt()
463 float high = 100.0f; in findCamByJ() local
469 while (Math.abs(low - high) > LIGHTNESS_SEARCH_ENDPOINT) { in findCamByJ()
470 mid = low + (high - low) / 2; in findCamByJ()
509 high = mid; in findCamByJ()
/frameworks/base/core/java/android/hardware/display/
DAmbientBrightnessDayStats.java215 int high = mBucketBoundaries.length - 1; in getBucketIndex() local
216 while (low < high) { in getBucketIndex()
217 int mid = (low + high) / 2; in getBucketIndex()
224 high = mid - 1; in getBucketIndex()
/frameworks/av/media/img_utils/include/img_utils/
DDngUtils.h34 #define CLAMP(x, low, high) (((x) > (high)) ? (high) : (((x) < (low)) ? (low) : (x))) argument
/frameworks/base/libs/androidfw/
DUtil.cpp99 int32_t high = ((codepoint - 0x10000) / 0x400) + 0xD800; in Utf8ToModifiedUtf8() local
103 output.push_back((char)(0xE4 | ((high >> 12) & 0xF))); in Utf8ToModifiedUtf8()
104 output.push_back((char)(0x80 | ((high >> 6) & 0x3F))); in Utf8ToModifiedUtf8()
105 output.push_back((char)(0x80 | (high & 0x3F))); in Utf8ToModifiedUtf8()
/frameworks/av/media/libaaudio/src/flowgraph/resampler/
DSincResampler.cpp68 const float high = mSingleFrame2[channel]; in readFrame() local
69 frame[channel] = low + (fraction * (high - low)); in readFrame()
DSincResamplerStereo.cpp77 float high = mSingleFrame2[channel]; in readFrame() local
78 frame[channel] = low + (fraction * (high - low)); in readFrame()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DPendingJobQueue.java463 int high = mJobs.size() - 1; in resetIterator() local
465 while (low < high) { in resetIterator()
466 int mid = (low + high) >>> 1; in resetIterator()
472 high = mid - 1; in resetIterator()
474 high = mid; in resetIterator()
477 mCurIndex = high; in resetIterator()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DRequestId.java78 int high = MAX_START_ID + 1; // nextInt is exclusive on upper limit in RequestId() local
81 int startId = random.nextInt(high - low) + low; in RequestId()

12345