HomeSort by relevance Sort by last modified time
    Searched refs:rnd (Results 76 - 100 of 353) sorted by null

1 2 34 5 6 7 8 91011>>

  /external/chromium_org/v8/src/utils/
random-number-generator.cc 90 int rnd = Next(31); local
91 int val = rnd % max;
92 if (rnd - val + (max - 1) >= 0) {
  /external/libvpx/libvpx/test/
subtract_test.cc 35 ACMRandom rnd(ACMRandom::DeterministicSeed());
71 base_src[c] = rnd.Rand8();
80 predictor[c] = rnd.Rand8();
vp9_subtract_test.cc 37 ACMRandom rnd(ACMRandom::DeterministicSeed());
54 src[r * block_width * 2 + c] = rnd.Rand8();
55 pred[r * block_width * 2 + c] = rnd.Rand8();
dct16x16_test.cc 289 ACMRandom rnd(ACMRandom::DeterministicSeed());
301 src[j] = rnd.Rand8();
302 dst[j] = rnd.Rand8();
327 ACMRandom rnd(ACMRandom::DeterministicSeed());
336 input_block[j] = rnd.Rand8() - rnd.Rand8();
348 ACMRandom rnd(ACMRandom::DeterministicSeed());
358 input_block[j] = rnd.Rand8() - rnd.Rand8();
359 input_extreme_block[j] = rnd.Rand8() % 2 ? 255 : -255
    [all...]
  /hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/
subtract_test.cc 35 ACMRandom rnd(ACMRandom::DeterministicSeed());
71 base_src[c] = rnd.Rand8();
80 predictor[c] = rnd.Rand8();
vp9_subtract_test.cc 37 ACMRandom rnd(ACMRandom::DeterministicSeed());
54 src[r * block_width * 2 + c] = rnd.Rand8();
55 pred[r * block_width * 2 + c] = rnd.Rand8();
  /external/deqp/modules/gles31/functional/
es31fSeparateShaderTests.cpp 110 DataType randomType (Random& rnd)
114 if (rnd.getInt(0, 7) == 0)
116 const int numCols = rnd.getInt(2, 4), numRows = rnd.getInt(2, 4);
124 const int size = rnd.getInt(1, 4);
125 const DataType scalarType = rnd.chooseWeighted<DataType>(
134 Interpolation randomInterpolation (Random& rnd)
136 return Interpolation(rnd.getInt(0, glu::INTERPOLATION_LAST - 1));
146 BindingKind randomBinding (Random& rnd)
148 return rnd.getBool() ? BINDING_LOCATION : BINDING_NAME
    [all...]
es31fShaderPackingFunctionTests.cpp 163 de::Random rnd (deStringHash(getName()) ^ 0x776002);
180 const float x = rnd.getFloat()*2.5f - 1.25f;
181 const float y = rnd.getFloat()*2.5f - 1.25f;
188 const float x = rnd.getFloat()*1e6f - 0.5e6f;
189 const float y = rnd.getFloat()*1e6f - 0.5e6f;
267 de::Random rnd (deStringHash(getName()) ^ 0x776002);
279 inputs.push_back(rnd.getUint32());
354 de::Random rnd (deStringHash(getName()) ^ 0x776002);
371 const float x = rnd.getFloat()*1.25f;
372 const float y = rnd.getFloat()*1.25f
    [all...]
es31fShaderCommonFunctionTests.cpp 69 template<typename T> T randomScalar (de::Random& rnd, T minValue, T maxValue);
70 template<> inline float randomScalar (de::Random& rnd, float minValue, float maxValue) { return rnd.getFloat(minValue, maxValue); }
71 template<> inline deInt32 randomScalar (de::Random& rnd, deInt32 minValue, deInt32 maxValue) { return rnd.getInt(minValue, maxValue); }
72 template<> inline deUint32 randomScalar (de::Random& rnd, deUint32 minValue, deUint32 maxValue) { return minValue + rnd.getUint32() % (maxValue - minValue + 1); }
75 inline tcu::Vector<T, Size> randomVector (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue)
79 res[ndx] = randomScalar<T>(rnd, minValue[ndx], maxValue[ndx]);
84 static void fillRandomVectors (de::Random& rnd, const tcu::Vector<T, Size>& minValue, const tcu::Vector<T, Size>& maxValue, void* dst, int numVal (…)
    [all...]
es31fSSBOLayoutTests.cpp 76 void generateBlock (de::Random& rnd, deUint32 layoutFlags);
77 void generateBufferVar (de::Random& rnd, BufferBlock& block, bool isLastMember);
78 glu::VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk, bool unusedArrayOk);
112 de::Random rnd(m_seed);
114 const int numBlocks = rnd.getInt(1, m_maxBlocks);
117 generateBlock(rnd, 0);
120 void RandomSSBOLayoutCase::generateBlock (de::Random& rnd, deUint32 layoutFlags)
126 int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0, m_maxInstances) : 0;
127 int numVars = rnd.getInt(1, m_maxBlockMembers)
    [all...]
  /external/chromium_org/third_party/skia/tests/
RandomTest.cpp 116 unsigned int rnd = rand.nextU(); local
117 value |= ((rnd >> shift) & 0x1);
123 unsigned int rnd = rand.nextU(); local
124 value |= ((rnd >> shift) & 0x1);
  /external/chromium_org/third_party/tcmalloc/chromium/src/tests/
low_level_alloc_unittest.cc 86 int rnd; local
109 rnd = rand();
110 it = allocated.find(rnd);
118 allocated[rnd] = block_desc;
sampler_test.cc 594 uint64_t rnd; // our 48 bit random number, which we don't trust local
597 rnd = one;
600 rnd = sampler.NextRandom(rnd);
601 CHECK_LE(rnd, max_value);
602 double q = (rnd >> (prng_mod_power - 26)) + 1.0;
603 CHECK_GE(q, 0); // << rnd << " " << prng_mod_power;
605 // Test some potentially out of bounds value for rnd
607 rnd = one << i;
608 double q = (rnd >> (prng_mod_power - 26)) + 1.0
637 uint64_t rnd = 227453640600554LL; local
    [all...]
  /external/chromium_org/third_party/tcmalloc/vendor/src/tests/
low_level_alloc_unittest.cc 86 int rnd; local
109 rnd = rand();
110 it = allocated.find(rnd);
118 allocated[rnd] = block_desc;
sampler_test.cc 594 uint64_t rnd; // our 48 bit random number, which we don't trust local
597 rnd = one;
600 rnd = sampler.NextRandom(rnd);
601 CHECK_LE(rnd, max_value);
602 double q = (rnd >> (prng_mod_power - 26)) + 1.0;
603 CHECK_GE(q, 0); // << rnd << " " << prng_mod_power;
605 // Test some potentially out of bounds value for rnd
607 rnd = one << i;
608 double q = (rnd >> (prng_mod_power - 26)) + 1.0
637 uint64_t rnd = 227453640600554LL; local
    [all...]
  /external/skia/tests/
RandomTest.cpp 116 unsigned int rnd = rand.nextU(); local
117 value |= ((rnd >> shift) & 0x1);
123 unsigned int rnd = rand.nextU(); local
124 value |= ((rnd >> shift) & 0x1);
  /external/chromium_org/third_party/openssl/openssl/android.testssl/
Uss.cnf 6 RANDFILE = /sdcard/android.testssl/.rnd
  /external/openssl/android.testssl/
Uss.cnf 6 RANDFILE = /sdcard/android.testssl/.rnd
  /external/deqp/modules/egl/
teglColorClearCase.cpp 89 static ClearOp computeRandomClear (de::Random& rnd, int width, int height)
91 int w = rnd.getInt(1, width);
92 int h = rnd.getInt(1, height);
93 int x = rnd.getInt(0, width-w);
94 int y = rnd.getInt(0, height-h);
95 tcu::RGBA col (rnd.getUint32());
153 de::Random rnd (deStringHash(getName()));
187 ClearOp clear = computeRandomClear(rnd, width, height);
299 de::Random rnd (deStringHash(getName()));
336 packet.clears[clearNdx] = computeRandomClear(rnd, width, height)
    [all...]
  /external/deqp/modules/gles2/functional/
es2fTextureUnitTests.cpp 295 de::Random rnd(randSeed);
306 float rotAngle = rnd.getFloat(0.0f, 2.0f*DE_PI);
307 float xScaleFactor = rnd.getFloat(0.7f, 1.5f);
308 float yScaleFactor = rnd.getFloat(0.7f, 1.5f);
309 float xShearAmount = rnd.getFloat(0.0f, 0.5f);
310 float yShearAmount = rnd.getFloat(0.0f, 0.5f);
311 float xTranslationAmount = rnd.getFloat(-0.5f, 0.5f);
312 float yTranslationAmount = rnd.getFloat(-0.5f, 0.5f);
377 planarTransData[i] = rnd.getFloat(0.1f, 0.9f); // Two first diagonal cells control the scaling.
384 int faceNdx = rnd.getInt(0, (int)tcu::CUBEFACE_LAST - 1)
    [all...]
  /external/deqp/modules/gles3/functional/
es3fShaderPackingFunctionTests.cpp 159 de::Random rnd (deStringHash(getName()) ^ 0x776002);
176 const float x = rnd.getFloat()*2.5f - 1.25f;
177 const float y = rnd.getFloat()*2.5f - 1.25f;
184 const float x = rnd.getFloat()*1e6f - 0.5e6f;
185 const float y = rnd.getFloat()*1e6f - 0.5e6f;
263 de::Random rnd (deStringHash(getName()) ^ 0x776002);
275 inputs.push_back(rnd.getUint32());
350 de::Random rnd (deStringHash(getName()) ^ 0x776002);
367 const float x = rnd.getFloat()*1.25f;
368 const float y = rnd.getFloat()*1.25f
    [all...]
es3fReadPixelsTests.cpp 237 de::Random rnd(m_seed);
275 const float red = rnd.getFloat();
276 const float green = rnd.getFloat();
277 const float blue = rnd.getFloat();
278 const float alpha = rnd.getFloat();
296 const GLint red = rnd.getUint32();
297 const GLint green = rnd.getUint32();
298 const GLint blue = rnd.getUint32();
299 const GLint alpha = rnd.getUint32();
313 const GLuint red = rnd.getUint32()
    [all...]
  /external/deqp/modules/glshared/
glsVertexArrayTests.cpp 240 inline T getRandom (deRandom& rnd, T min, T max);
243 inline GLValue::Float getRandom (deRandom& rnd, GLValue::Float min, GLValue::Float max)
248 return GLValue::Float::create(min + deRandom_getFloat(&rnd) * (max.to<float>() - min.to<float>()));
252 inline GLValue::Short getRandom (deRandom& rnd, GLValue::Short min, GLValue::Short max)
257 return GLValue::Short::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))));
261 inline GLValue::Ushort getRandom (deRandom& rnd, GLValue::Ushort min, GLValue::Ushort max)
266 return GLValue::Ushort::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))));
270 inline GLValue::Byte getRandom (deRandom& rnd, GLValue::Byte min, GLValue::Byte max)
275 return GLValue::Byte::create((min == max ? min : min + (deRandom_getUint32(&rnd) % (max.to<int>() - min.to<int>()))));
279 inline GLValue::Ubyte getRandom (deRandom& rnd, GLValue::Ubyte min, GLValue::Ubyte max
    [all...]
glsMemoryStressCase.cpp 451 void allocateTexture (de::Random& rnd);
452 void allocateBuffer (de::Random& rnd);
496 de::Random rnd(m_seed);
510 allocateTexture(rnd);
514 allocateBuffer(rnd);
519 if (rnd.getBool())
520 allocateBuffer(rnd);
522 allocateTexture(rnd);
580 void MemObjectAllocator::allocateTexture (de::Random& rnd)
585 int width = rnd.getInt(m_config.minTextureSize, m_config.maxTextureSize)
    [all...]
  /external/chromium_org/third_party/libvpx/source/libvpx/test/
dct16x16_test.cc 289 ACMRandom rnd(ACMRandom::DeterministicSeed());
301 src[j] = rnd.Rand8();
302 dst[j] = rnd.Rand8();
327 ACMRandom rnd(ACMRandom::DeterministicSeed());
336 input_block[j] = rnd.Rand8() - rnd.Rand8();
348 ACMRandom rnd(ACMRandom::DeterministicSeed());
358 input_block[j] = rnd.Rand8() - rnd.Rand8();
359 input_extreme_block[j] = rnd.Rand8() % 2 ? 255 : -255
    [all...]

Completed in 1292 milliseconds

1 2 34 5 6 7 8 91011>>