/external/deqp/framework/delibs/debase/ |
deRandom.c | 33 * \param rnd RNG to initialize. 36 void deRandom_init (deRandom* rnd, deUint32 seed) 38 rnd->x = (deUint32)(-(int)seed ^ 123456789); 39 rnd->y = (deUint32)(362436069 * seed); 40 rnd->z = (deUint32)(521288629 ^ (seed >> 7)); 41 rnd->w = (deUint32)(88675123 ^ (seed << 3)); 46 * \param rnd Pointer to RNG. 49 deUint32 deRandom_getUint32 (deRandom* rnd) 51 deUint32 w = rnd->w; 54 t = rnd->x ^ (rnd->x << 11) [all...] |
deRandom.h | 47 void deRandom_init (deRandom* rnd, deUint32 seed); 48 deUint32 deRandom_getUint32 (deRandom* rnd); 49 deUint64 deRandom_getUint64 (deRandom* rnd); 50 float deRandom_getFloat (deRandom* rnd); 51 double deRandom_getDouble (deRandom* rnd); 52 deBool deRandom_getBool (deRandom* rnd);
|
/external/deqp/framework/common/ |
tcuRandomValueIterator.hpp | 33 T getRandomValue (de::Random& rnd) 40 deUint32 rval = rnd.getUint32(); 48 template <> inline deUint8 getRandomValue<deUint8> (de::Random& rnd) { return (deUint8)rnd.getUint32(); } 49 template <> inline deUint16 getRandomValue<deUint16> (de::Random& rnd) { return (deUint16)rnd.getUint32(); } 50 template <> inline deUint32 getRandomValue<deUint32> (de::Random& rnd) { return rnd.getUint32(); } 51 template <> inline deUint64 getRandomValue<deUint64> (de::Random& rnd) { return rnd.getUint64(); [all...] |
/external/deqp/modules/glshared/ |
glsInteractionTestUtil.cpp | 44 static Vec4 getRandomColor (de::Random& rnd) 47 float r = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); 48 float g = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); 49 float b = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); 50 float a = rnd.choose<float>(DE_ARRAY_BEGIN(components), DE_ARRAY_END(components)); 54 void computeRandomRenderState (de::Random& rnd, RenderState& state, glu::ApiType apiType, int targetWidth, int targetHeight) 149 state.scissorTestEnabled = rnd.getFloat() < scissorTestProbability; 150 state.stencilTestEnabled = rnd.getFloat() < stencilTestProbability; 151 state.depthTestEnabled = rnd.getFloat() < depthTestProbability; 152 state.blendEnabled = rnd.getFloat() < blendProbability [all...] |
glsRandomUniformBlockCase.cpp | 66 de::Random rnd(m_seed); 68 int numShared = m_maxSharedBlocks > 0 ? rnd.getInt(1, m_maxSharedBlocks) : 0; 69 int numVtxBlocks = m_maxVertexBlocks-numShared > 0 ? rnd.getInt(1, m_maxVertexBlocks-numShared) : 0; 70 int numFragBlocks = m_maxFragmentBlocks-numShared > 0 ? rnd.getInt(1, m_maxFragmentBlocks-numShared) : 0; 73 generateBlock(rnd, DECLARE_VERTEX|DECLARE_FRAGMENT); 76 generateBlock(rnd, DECLARE_VERTEX); 79 generateBlock(rnd, DECLARE_FRAGMENT); 82 void RandomUniformBlockCase::generateBlock (de::Random& rnd, deUint32 layoutFlags) 88 int numInstances = (m_maxInstances > 0 && rnd.getFloat() < instanceArrayWeight) ? rnd.getInt(0, m_maxInstances) : 0 [all...] |
glsRandomUniformBlockCase.hpp | 80 void generateBlock (de::Random& rnd, deUint32 layoutFlags); 81 void generateUniform (de::Random& rnd, ub::UniformBlock& block); 82 ub::VarType generateType (de::Random& rnd, int typeDepth, bool arrayOk);
|
/external/chromium_org/third_party/leveldatabase/src/util/ |
testutil.cc | 12 Slice RandomString(Random* rnd, int len, std::string* dst) { 15 (*dst)[i] = static_cast<char>(' ' + rnd->Uniform(95)); // ' ' .. '~' 20 std::string RandomKey(Random* rnd, int len) { 28 result += kTestChars[rnd->Uniform(sizeof(kTestChars))]; 34 extern Slice CompressibleString(Random* rnd, double compressed_fraction, 39 RandomString(rnd, raw, &raw_data);
|
arena_test.cc | 23 Random rnd(301); 29 s = rnd.OneIn(4000) ? rnd.Uniform(6000) : 30 (rnd.OneIn(10) ? rnd.Uniform(100) : rnd.Uniform(20)); 37 if (rnd.OneIn(10)) {
|
testutil.h | 17 extern Slice RandomString(Random* rnd, int len, std::string* dst); 21 extern std::string RandomKey(Random* rnd, int len); 26 extern Slice CompressibleString(Random* rnd, double compressed_fraction,
|
/external/chromium_org/third_party/libvpx/source/libvpx/test/ |
vp9_boolcoder_test.cc | 30 ACMRandom rnd(ACMRandom::DeterministicSeed()); 41 (method == 3) ? rnd.Rand8() : 44 (method == 5) ? (parity ? rnd(128) : 255 - rnd(128)) : 46 (parity ? rnd(64) : 255 - rnd(64)) : 47 (parity ? rnd(32) : 255 - rnd(32));
|
/external/libvpx/libvpx/test/ |
vp9_boolcoder_test.cc | 30 ACMRandom rnd(ACMRandom::DeterministicSeed()); 41 (method == 3) ? rnd.Rand8() : 44 (method == 5) ? (parity ? rnd(128) : 255 - rnd(128)) : 46 (parity ? rnd(64) : 255 - rnd(64)) : 47 (parity ? rnd(32) : 255 - rnd(32));
|
/external/stlport/test/eh/ |
random_number.cpp | 32 static EH_STD::subtractive_rng rnd; 34 return rnd(range);
|
/hardware/intel/common/omx-components/videocodec/libvpx_internal/libvpx/test/ |
vp9_boolcoder_test.cc | 30 ACMRandom rnd(ACMRandom::DeterministicSeed()); 41 (method == 3) ? rnd.Rand8() : 44 (method == 5) ? (parity ? rnd(128) : 255 - rnd(128)) : 46 (parity ? rnd(64) : 255 - rnd(64)) : 47 (parity ? rnd(32) : 255 - rnd(32));
|
/external/deqp/framework/delibs/decpp/ |
deRandom.cpp | 55 Random rnd(4789); 57 DE_TEST_ASSERT(expected[i] == rnd.getBool()); 64 Random rnd(4789); 66 DE_TEST_ASSERT(expected[i] == rnd.getInt(-10000, 10000)); 73 Random rnd(4789); 75 DE_TEST_ASSERT(expected[i] == rnd.getUint32()); 82 Random rnd(4789); 84 DE_TEST_ASSERT(expected[i] == rnd.getUint64()); 92 Random rnd(4789); 94 DE_TEST_ASSERT(de::abs(expected[i] - rnd.getFloat()) < epsilon) [all...] |
deRingBuffer.cpp | 40 Random rnd (iterNdx); 41 int bufSize = rnd.getInt(1, 2048); 42 int dataSize = rnd.getInt(100, 10000); 56 bool doRead = canRead && (!canWrite || rnd.getBool()); 63 int numBytes = rnd.getInt(1, buffer.getNumElements()); 77 int numBytes = rnd.getInt(1, de::min(dataSize-writePos, buffer.getNumFree()));
|
deBlockBuffer.cpp | 71 Random rnd ((deUint32)m_lastPayload.size()); 77 int numToRead = rnd.getInt(1, DE_LENGTH_OF_ARRAY(tmpBuf)); 137 Random rnd (m_threadId); 143 int writeSize = rnd.getInt(1, de::min(m_numMessages-msgNdx, DE_LENGTH_OF_ARRAY(tmpBuf))); 148 if (rnd.getBool()) 164 Random rnd (iterNdx); 165 int numBlocks = rnd.getInt(2, 128); 166 int blockSize = rnd.getInt(1, 16); 167 int numProducers = rnd.getInt(1, 16); 168 int numConsumers = rnd.getInt(1, 16) [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/bn/ |
bn_depr.c | 73 BIGNUM *rnd=NULL; local 80 if ((rnd=BN_new()) == NULL) goto err; 83 rnd=ret; 84 if(!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) 90 if (!found && (ret == NULL) && (rnd != NULL)) BN_free(rnd); 91 return(found ? rnd : NULL);
|
bn_rand.c | 118 static int bnrand(int pseudorand, BIGNUM *rnd, int bits, int top, int bottom) 126 BN_zero(rnd); 199 if (!BN_bin2bn(buf,bytes,rnd)) goto err; 207 bn_check_top(rnd); 211 int BN_rand(BIGNUM *rnd, int bits, int top, int bottom) 213 return bnrand(0, rnd, bits, top, bottom); 216 int BN_pseudo_rand(BIGNUM *rnd, int bits, int top, int bottom) 218 return bnrand(1, rnd, bits, top, bottom); 222 int BN_bntest_rand(BIGNUM *rnd, int bits, int top, int bottom) 224 return bnrand(2, rnd, bits, top, bottom) [all...] |
/external/openssl/crypto/bn/ |
bn_depr.c | 73 BIGNUM *rnd=NULL; local 80 if ((rnd=BN_new()) == NULL) goto err; 83 rnd=ret; 84 if(!BN_generate_prime_ex(rnd, bits, safe, add, rem, &cb)) 90 if (!found && (ret == NULL) && (rnd != NULL)) BN_free(rnd); 91 return(found ? rnd : NULL);
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
FuzzyTestCase.java | 57 protected Random rnd; field in class:FuzzyTestCase 61 rnd = null; 66 rnd = new Random(seed);
|
HtmlPolicyBuilderFuzzerTest.java | 97 int r = rnd.nextInt(3); 101 if (rnd.nextBoolean()) { 102 for (int k = rnd.nextInt(4); --k >= 0;) { 103 attributes.add(pick(rnd, ATTR_NAMES)); 104 attributes.add(pickChunk(rnd)); 107 policy.openTag(pick(rnd, ELEMENT_NAMES), attributes); 110 policy.closeTag(pick(rnd, ELEMENT_NAMES)); 113 policy.text(pickChunk(rnd)); 162 private static String pick(Random rnd, String[] choices) { 163 return choices[rnd.nextInt(choices.length)] [all...] |
/external/deqp/framework/delibs/deutil/ |
deTimerTest.c | 45 deRandom rnd; local 49 deRandom_init(&rnd, 6789); 56 deBool isSingle = deRandom_getFloat(&rnd) < 0.25f; 57 int interval = minInterval + (int)(deRandom_getUint32(&rnd) % (deUint32)(maxInterval-minInterval+1));
|
/libcore/luni/src/main/java/java/util/concurrent/ |
ThreadLocalRandom.java | 44 private long rnd; field in class:ThreadLocalRandom 96 rnd = (seed ^ multiplier) & mask; 100 rnd = (rnd * multiplier + addend) & mask; 101 return (int) (rnd >>> (48-bits));
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/share/doc/mpfr/examples/ |
divworst.c | 45 eval (mpfr_t x, mpfr_t y, mpfr_t z, mpfr_t t, mpfr_rnd_t rnd) 47 mpfr_div (t, x, y, rnd); /* the division x/y in precision p */ 48 mpfr_set (z, t, rnd); /* the rounding to the precision n */ 49 mpfr_rint_floor (z, z, rnd); 50 return mpfr_get_ui (z, rnd);
|
/art/test/102-concurrent-gc/src/ |
Main.java | 34 Random rnd = new Random(123456); local 36 int index = rnd.nextInt(buckets); 56 int b = rnd.nextInt(a);
|