Searched defs:min (Results 451 - 475 of 821) sorted by last modified time

<<11121314151617181920>>

/external/deqp/framework/common/
H A DtcuTexture.cpp107 deInt64 minVal = std::numeric_limits<T>::min();
123 intVal = de::max(minVal, de::min(maxVal, intVal));
335 S min = (S)std::numeric_limits<T>::min(); local
338 if (src < min)
339 return (T)min;
377 return de::min(maxVal, intVal);
383 return de::min(maxVal, src);
1887 int level1 = de::min(maxLevel, level0 + 1);
1927 int level1 = de::min(maxLeve
[all...]
H A DtcuVectorUtil.hpp406 #if defined(min)
407 # undef min macro
458 TCU_DECLARE_VECTOR_BINARY_FUNC(min, de::min)
/external/deqp/framework/delibs/decpp/
H A DdeDefs.hpp39 template<typename T> inline T min (T x, T y) { return x <= y ? x : y; } function in namespace:de
H A DdeRandom.hpp48 float getFloat (float min, float max);
49 double getDouble (double min, double max);
50 int getInt (int min, int max);
79 inline float Random::getFloat (float min, float max) argument
81 DE_ASSERT(min <= max);
82 return min + (max-min)*getFloat();
85 inline double Random::getDouble (double min, double max) argument
87 DE_ASSERT(min <= max);
88 return min
91 getInt(int min, int max) argument
[all...]
/external/deqp/framework/randomshaders/
H A DrsgBinaryOps.cpp301 int operator() (de::Random& rnd, int min, int max) const { return rnd.getInt(min, max); } argument
302 float operator() (de::Random& rnd, float min, float max) const { return getQuantizedFloat(rnd, min, max, 0.5f); } argument
351 int operator() (de::Random& rnd, int min, int max) const { return rnd.getInt(min, max); } argument
352 float operator() (de::Random& rnd, float min, float max) const { return getQuantizedFloat(rnd, min, max, 0.5f); } argument
491 int operator() (de::Random& random, int min, int max) const { return random.getInt(min, ma argument
492 operator ()(de::Random& random, float min, float max) const argument
547 operator ()(de::Random& random, int min, int max) const argument
548 operator ()(de::Random& random, float min, float max) const argument
635 operator ()(de::Random& random, int min, int max) const argument
636 operator ()(de::Random& random, float min, float max) const argument
[all...]
H A DrsgExpression.cpp178 if (valueRange.getMin().component(ndx).asScalar() != Scalar::min<int>() ||
198 if (valueRange.getMin().component(ndx).asScalar() != Scalar::min<float>() ||
232 valueRange.getMin().component(ndx) = Scalar::min<bool>();
240 valueRange.getMin().component(ndx) = Scalar::min<int>();
248 valueRange.getMin().component(ndx) = Scalar::min<float>();
371 if (Scalar::min<float>() == minVal)
396 if (Scalar::min<float>() == minVal && Scalar::max<float>() == maxVal)
428 if (Scalar::min<int>() == minVal)
451 if (Scalar::min<int>() == minVal && Scalar::max<int>() == maxVal)
515 if (Scalar::min<SrcTyp
573 isConversionOk(DstType min, DstType max) argument
[all...]
H A DrsgShaderGenerator.cpp148 ValueAccess min = valueRange.component(elemNdx).getMin(); local
153 case VariableType::TYPE_FLOAT: min = 0.0f; max = 1.0f; break;
154 case VariableType::TYPE_INT: min = 0; max = 1; break;
155 case VariableType::TYPE_BOOL: min = false; max = true; break;
H A DrsgUtils.hpp53 inline float getQuantizedFloat (de::Random& rnd, float min, float max, float step) argument
55 int numSteps = (int)((max-min)/step);
56 return min + step*rnd.getInt(0, numSteps);
59 inline bool quantizeFloatRange (float& min, float& max) argument
63 float newMin = deFloatCeil(min*subdiv)/subdiv;
65 min = newMin; // Minimum value quantized
70 if (min <= newMax)
H A DrsgVariableValue.hpp51 template <typename T> static Scalar min (void);
59 template <> inline Scalar Scalar::min<float> (void) { return Scalar((int)0xff800000); } function in class:rsg::Scalar
61 template <> inline Scalar Scalar::min<int> (void) { return Scalar((int)0x80000000); } function in class:rsg::Scalar
63 template <> inline Scalar Scalar::min<bool> (void) { return Scalar(false); } function in class:rsg::Scalar
/external/deqp/modules/egl/
H A DteglMemoryStressTests.cpp417 int min = m_allocationCounts[0]; local
424 min = deMin32(m_allocationCounts[allocNdx], min);
428 if (min == 0 && max != 0)
435 float change = (min - max) / ((float)(max));
439 log << TestLog::Message << "Allocated objects max: " << max << ", min: " << min << ", difference: " << change << "% threshold: " << threshold << "%" << TestLog::EndMessage;
/external/deqp/modules/gles2/functional/
H A Des2fFloatStateQueryTests.cpp61 return (GLint)de::clamp<GLint64>(val, std::numeric_limits<GLint>::min(), std::numeric_limits<GLint>::max());
84 virtual void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) = DE_NULL;
116 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
216 void GetBooleanVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) argument
228 if (max < 0 || min < 0)
230 testCtx.getLog() << TestLog::Message << "// ERROR: range [" << min << ", " << max << "] is not in range [" << (range[0] == GL_TRUE ? "GL_TRUE" : (range[0] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << ", " << (range[1] == GL_TRUE ? "GL_TRUE" : (range[1] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << "]" << TestLog::EndMessage;
238 if (max > 0 || min > 0)
240 testCtx.getLog() << TestLog::Message << "// ERROR: range [" << min << ", " << max << "] is not in range [" << (range[0] == GL_TRUE ? "GL_TRUE" : (range[0] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << ", " << (range[1] == GL_TRUE ? "GL_TRUE" : (range[1] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << "]" << TestLog::EndMessage;
258 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
400 void GetIntegerVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloa argument
585 verifyFloatRange(tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) argument
708 verifyFloatRange(tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) argument
[all...]
H A Des2fImplementationLimitTests.cpp51 inline bool compare (const T& min, const T& reported) { return min <= reported; } argument
65 float min; member in struct:deqp::gles2::Functional::LimitQuery::FloatRange
67 FloatRange (float min_, float max_) : min(min_), max(max_) {}
70 std::ostream& operator<< (std::ostream& str, const FloatRange& range) { return str << range.min << ", " << range.max; }
122 bool compare<Boolean> (const Boolean& min, const Boolean& reported) argument
124 return !min.value || (min.value && reported.value);
128 bool compare<NegInt> (const NegInt& min, const NegInt& reported) argument
131 return reported.value <= min
135 compare(const FloatRange& min, const FloatRange& reported) argument
[all...]
/external/deqp/modules/gles3/functional/
H A Des3fFloatStateQueryTests.cpp61 return (GLint)de::clamp<GLint64>(val, std::numeric_limits<GLint>::min(), std::numeric_limits<GLint>::max());
84 virtual void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) = DE_NULL;
117 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
218 void GetBooleanVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) argument
230 if (max < 0 || min < 0)
232 testCtx.getLog() << TestLog::Message << "// ERROR: range [" << min << ", " << max << "] is not in range [" << (range[0] == GL_TRUE ? "GL_TRUE" : (range[0] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << ", " << (range[1] == GL_TRUE ? "GL_TRUE" : (range[1] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << "]" << TestLog::EndMessage;
240 if (max > 0 || min > 0)
242 testCtx.getLog() << TestLog::Message << "// ERROR: range [" << min << ", " << max << "] is not in range [" << (range[0] == GL_TRUE ? "GL_TRUE" : (range[0] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << ", " << (range[1] == GL_TRUE ? "GL_TRUE" : (range[1] == GL_FALSE ? "GL_FALSE" : "non-boolean")) << "]" << TestLog::EndMessage;
290 void verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max);
433 void GetIntegerVerifier::verifyFloatRange (tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloa argument
639 verifyFloatRange(tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) argument
783 verifyFloatRange(tcu::TestContext& testCtx, GLenum name, GLfloat min, GLfloat max) argument
[all...]
H A Des3fImplementationLimitTests.cpp60 inline bool compare (const T& min, const T& reported) { return min <= reported; } argument
74 float min; member in struct:deqp::gles3::Functional::LimitQuery::FloatRange
76 FloatRange (float min_, float max_) : min(min_), max(max_) {}
79 std::ostream& operator<< (std::ostream& str, const FloatRange& range) { return str << range.min << ", " << range.max; }
161 bool compare<Boolean> (const Boolean& min, const Boolean& reported) argument
163 return !min.value || (min.value && reported.value);
167 bool compare<NegInt> (const NegInt& min, const NegInt& reported) argument
170 return reported.value <= min
174 compare(const FloatRange& min, const FloatRange& reported) argument
180 compare(const AlignmentInt& min, const AlignmentInt& reported) argument
[all...]
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_test_utils.h21 // MSVS headers define max/min as macros, so std::max/min gets crazy.
23 # undef min macro
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_defs.h137 T min(T a, T b) { function in namespace:__tsan
/external/clang/test/Analysis/
H A Dadditive-folding-range-constraints.c75 int min = INT_MIN; local
77 clang_analyzer_eval((a - 2) >= (min + 5LL)); // expected-warning{{TRUE}}
143 int min = INT_MIN; local
145 clang_analyzer_eval((a + 2) >= (min + 5LL)); // expected-warning{{TRUE}}
204 int min = INT_MIN; local
205 clang_analyzer_eval(a < min); // expected-warning{{UNKNOWN}}
206 clang_analyzer_eval((a + 2) < min); // expected-warning{{UNKNOWN}}
207 clang_analyzer_eval((a + 2U) < min); // expected-warning{{UNKNOWN}}
211 int min = INT_MIN; local
212 clang_analyzer_eval(a <= min); // expecte
218 unsigned min = 0; local
225 unsigned min = 0; local
232 int min = 0; local
239 int min = 0; local
246 int min = 0; local
253 int min = 0; local
274 unsigned min = INT_MIN; local
281 unsigned min = INT_MIN; local
[all...]
H A Dadditive-folding.cpp146 int min = INT_MIN; local
149 clang_analyzer_eval(a == max && b != min); // expected-warning{{FALSE}}
154 int min = INT_MIN; local
157 clang_analyzer_eval((a - 2) > (min - 1LL)); // expected-warning{{TRUE}}
163 int min = INT_MIN; local
166 clang_analyzer_eval((a - 2) >= (min - 1LL)); // expected-warning{{TRUE}}
167 clang_analyzer_eval((a - 2LL) >= min); // expected-warning{{UNKNOWN}}
/external/clang/test/Index/
H A Drecursive-cxx-member-calls.cpp45 static size_t min(size_t a, size_t b) { return a < b ? a : b; } function in class:llvm::StringRef
61 return StringRef(Data + Start, min(N, Length - Start));
457 // CHECK-tokens: Keyword: "static" [45:3 - 45:9] CXXMethod=min:45:17 (Definition) (static)
459 // CHECK-tokens: Identifier: "min" [45:17 - 45:20] CXXMethod=min:45:17 (Definition) (static)
460 // CHECK-tokens: Punctuation: "(" [45:20 - 45:21] CXXMethod=min:45:17 (Definition) (static)
463 // CHECK-tokens: Punctuation: "," [45:29 - 45:30] CXXMethod=min:45:17 (Definition) (static)
466 // CHECK-tokens: Punctuation: ")" [45:39 - 45:40] CXXMethod=min:45:17 (Definition) (static)
647 // CHECK-tokens: Identifier: "min" [61:36 - 61:39] DeclRefExpr=min
[all...]
/external/clang/test/Modules/Inputs/
H A Dcxx-irgen-top.h8 template<typename T> T min(T a, T b) { return a < b ? a : b; } function
10 extern decltype(min(1, 2)) instantiate_min_decl;
/external/clang/test/SemaCXX/
H A Dconstant-expression-cxx11.cpp14 template<typename T> constexpr T min(const T &a, const T &b) { function
163 return gcd_inner(max(a, b), min(a, b));
/external/chromium_org/v8/test/cctest/
H A Dtest-assembler-arm64.cc5717 bool min,
5749 return min ? -0.0 : 0.0;
5752 return min ? fminf(n, m) : fmaxf(n, m);
5758 bool min,
5790 return min ? -0.0 : 0.0;
5793 return min ? fmin(n, m) : fmax(n, m);
5797 static void FminFmaxDoubleHelper(double n, double m, double min, double max, argument
5812 CHECK_EQUAL_FP64(min, d28);
5882 static void FminFmaxFloatHelper(float n, float m, float min, float max, argument
5897 CHECK_EQUAL_FP32(min, s2
5715 MinMaxHelper(float n, float m, bool min, float quiet_nan_substitute = 0.0) argument
5756 MinMaxHelper(double n, double m, bool min, double quiet_nan_substitute = 0.0) argument
[all...]
H A Dtest-types.cc219 TypeHandle Range(Handle<i::Object> min, Handle<i::Object> max) { argument
220 return Type::Range(min, max, region_);
287 i::Handle<i::Object> min = integers[i]; local
289 if (min->Number() > max->Number()) std::swap(min, max);
290 return Type::Range(min, max, region_);
577 i::Handle<i::Object> min = *i; local
579 if (min->Number() > max->Number()) std::swap(min, max);
580 TypeHandle type = T.Range(min, ma
588 i::Handle<i::Object> min = *i; local
[all...]
/external/chromium_org/v8/test/mjsunit/
H A Dmath-min-max.js30 // Test Math.min().
32 assertEquals(Infinity, Math.min());
33 assertEquals(1, Math.min(1));
34 assertEquals(1, Math.min(1, 2));
35 assertEquals(1, Math.min(2, 1));
36 assertEquals(1, Math.min(1, 2, 3));
37 assertEquals(1, Math.min(3, 2, 1));
38 assertEquals(1, Math.min(2, 3, 1));
39 assertEquals(1.1, Math.min(1.1, 2.2, 3.3));
40 assertEquals(1.1, Math.min(3.
[all...]
/external/chromium_org/v8/benchmarks/
H A Dcrypto.js382 var i = 0, c = 0, m = Math.min(a.t,this.t);
817 var i, f, m = Math.min(a.t,this.t);
939 var i = 0, c = 0, m = Math.min(a.t,this.t);
1031 var i = Math.min(this.t+a.t,n);
1037 for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a_array[i],r,i,0,n-i);
1308 BigInteger.prototype.min = bnMin;

Completed in 557 milliseconds

<<11121314151617181920>>