/third_party/skia/src/opts/ |
D | SkChecksum_opts.h | 21 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { return _mm_crc32_u8(seed, v); } in crc32c_1() argument 22 static uint32_t crc32c_4(uint32_t seed, uint32_t v) { return _mm_crc32_u32(seed, v); } in crc32c_4() argument 23 static uint32_t crc32c_8(uint32_t seed, uint64_t v) { in crc32c_8() argument 25 return _mm_crc32_u64(seed, v); in crc32c_8() 27 seed = _mm_crc32_u32(seed, (uint32_t)(v )); in crc32c_8() 28 return _mm_crc32_u32(seed, (uint32_t)(v >> 32)); in crc32c_8() 33 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { return __crc32cb(seed, v); } in crc32c_1() argument 34 static uint32_t crc32c_4(uint32_t seed, uint32_t v) { return __crc32cw(seed, v); } in crc32c_4() argument 35 static uint32_t crc32c_8(uint32_t seed, uint64_t v) { return __crc32cd(seed, v); } in crc32c_8() argument 88 static uint32_t crc32c_1(uint32_t seed, uint8_t v) { in crc32c_1() argument [all …]
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
D | hash.inl | 16 GLM_INLINE void hash_combine(size_t &seed, size_t hash) argument 18 hash += 0x9e3779b9 + (seed << 6) + (seed >> 2); 19 seed ^= hash; 35 size_t seed = 0; local 37 glm::detail::hash_combine(seed, hasher(v.x)); 38 glm::detail::hash_combine(seed, hasher(v.y)); 39 return seed; 45 size_t seed = 0; local 47 glm::detail::hash_combine(seed, hasher(v.x)); 48 glm::detail::hash_combine(seed, hasher(v.y)); [all …]
|
/third_party/vk-gl-cts/modules/gles2/functional/ |
D | es2fRandomShaderTests.cpp | 38 …nst char* description, const rsg::ProgramParameters& baseParams, deUint32 seed, bool vertex, bool … in createRandomShaderCase() argument 42 params.seed = seed; in createRandomShaderCase() 46 …erCase(context.getTestContext(), context.getRenderContext(), de::toString(seed).c_str(), descripti… in createRandomShaderCase() 70 for (int seed = 0; seed < 100; seed++) in init() local 72 …andomShaderCase(m_context, "Random expressions in vertex shader", params, seed, true, false)); in init() 73 …andomShaderCase(m_context, "Random expressions in fragment shader", params, seed, false, true)); in init() 74 …derCase(m_context, "Random expressions in vertex and fragment shaders", params, seed, true, true)); in init() 101 for (int seed = 0; seed < 100; seed++) in init() local 103 …andomShaderCase(m_context, "Scalar conversions in vertex shader", params, seed, true, false)); in init() 104 …andomShaderCase(m_context, "Scalar conversions in fragment shader", params, seed, false, true)); in init() [all …]
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
D | es3fRandomShaderTests.cpp | 39 …nst char* description, const rsg::ProgramParameters& baseParams, deUint32 seed, bool vertex, bool … in createRandomShaderCase() argument 44 params.seed = seed; in createRandomShaderCase() 48 …erCase(context.getTestContext(), context.getRenderContext(), de::toString(seed).c_str(), descripti… in createRandomShaderCase() 72 for (int seed = 0; seed < 100; seed++) in init() local 74 …andomShaderCase(m_context, "Random expressions in vertex shader", params, seed, true, false)); in init() 75 …andomShaderCase(m_context, "Random expressions in fragment shader", params, seed, false, true)); in init() 76 …derCase(m_context, "Random expressions in vertex and fragment shaders", params, seed, true, true)); in init() 103 for (int seed = 0; seed < 100; seed++) in init() local 105 …andomShaderCase(m_context, "Scalar conversions in vertex shader", params, seed, true, false)); in init() 106 …andomShaderCase(m_context, "Scalar conversions in fragment shader", params, seed, false, true)); in init() [all …]
|
/third_party/libxml2/fuzz/ |
D | Makefile.am | 28 corpus: seed/html.stamp seed/regexp.stamp seed/schema.stamp seed/uri.stamp \ 29 seed/xml.stamp seed/xpath.stamp 36 rm -rf seed 46 seed/xml.stamp: genSeed$(EXEEXT) 47 @mkdir -p seed/xml 49 @touch seed/xml.stamp 54 fuzz-xml: xml$(EXEEXT) seed/xml.stamp 60 corpus/xml seed/xml 64 seed/html.stamp: genSeed$(EXEEXT) 65 @mkdir -p seed/html [all …]
|
/third_party/json/include/nlohmann/detail/ |
D | hash.hpp | 12 inline std::size_t combine(std::size_t seed, std::size_t h) noexcept in combine() argument 14 seed ^= h + 0x9e3779b9 + (seed << 6U) + (seed >> 2U); in combine() 15 return seed; in combine() 48 auto seed = combine(type, j.size()); in hash() local 52 seed = combine(seed, h); in hash() 53 seed = combine(seed, hash(element.value())); in hash() 55 return seed; in hash() 60 auto seed = combine(type, j.size()); in hash() local 63 seed = combine(seed, hash(element)); in hash() 65 return seed; in hash() [all …]
|
/third_party/mindspore/tests/st/auto_monad/ |
D | test_effect_random.py | 33 def __init__(self, shape, seed=0): argument 35 self.n1 = msd.Normal(0, 1, seed=seed, dtype=dtype.float32) 51 seed = 0 52 samp = Sampling(shape, seed=seed) 59 def __init__(self, shape=None, seed=0): argument 62 self.seed = seed 65 s1 = C.normal(self.shape, mean, stddev, self.seed) 66 s2 = C.normal(self.shape, mean, stddev, self.seed) 67 s3 = C.normal(self.shape, mean, stddev, self.seed) 86 def __init__(self, shape=None, seed=0): argument [all …]
|
/third_party/boost/boost/container_hash/ |
D | hash.hpp | 277 std::size_t seed = 0; in hash_value_signed() local 283 seed ^= (std::size_t) (positive >> i) + (seed<<6) + (seed>>2); in hash_value_signed() 285 seed ^= (std::size_t) val + (seed<<6) + (seed>>2); in hash_value_signed() 287 return seed; in hash_value_signed() 298 std::size_t seed = 0; in hash_value_unsigned() local 303 seed ^= (std::size_t) (val >> i) + (seed<<6) + (seed>>2); in hash_value_unsigned() 305 seed ^= (std::size_t) val + (seed<<6) + (seed>>2); in hash_value_unsigned() 307 return seed; in hash_value_unsigned() 311 inline void hash_combine_impl(SizeT& seed, SizeT value) in hash_combine_impl() argument 313 seed ^= value + 0x9e3779b9 + (seed<<6) + (seed>>2); in hash_combine_impl() [all …]
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/ |
D | random_op_impl.cu | 19 __global__ void NormalKernel(int seed, curandState *globalState, T *output, size_t count) { in NormalKernel() argument 21 curand_init(seed, i, 0, &globalState[i]); in NormalKernel() 30 __global__ void UniformIntKernel(int seed, curandState *globalState, T *input1, size_t input_size_1, in UniformIntKernel() argument 37 curand_init(seed, i, 0, &globalState[i]); in UniformIntKernel() 45 __global__ void UniformRealKernel(int seed, curandState *globalState, T *output, size_t count) { in UniformRealKernel() argument 47 curand_init(seed, i, 0, &globalState[i]); in UniformRealKernel() 54 void StandardNormal(int seed, int seed2, curandState *globalState, T *output, size_t count, cudaStr… in StandardNormal() argument 59 } else if (seed != 0) { in StandardNormal() 60 RNG_seed = seed; in StandardNormal() 69 bool UniformInt(int seed, int seed2, curandState *globalState, T *input1, size_t input_size_1, in UniformInt() argument [all …]
|
/third_party/musl/libc-test/src/functionalext/supplement/prng/ |
D | rand_r.c | 29 unsigned int seed = 10; in rand_r_0100() local 30 int a_result = rand_r(&seed); in rand_r_0100() 31 seed = 200; in rand_r_0100() 32 int b_result = rand_r(&seed); in rand_r_0100() 46 unsigned int seed = seed_; in rand_r_0200() local 47 int a_result = rand_r(&seed); in rand_r_0200() 48 seed = seed_; in rand_r_0200() 49 int b_result = rand_r(&seed); in rand_r_0200() 63 unsigned int seed = 10; in rand_r_0300() local 64 int a_result = rand_r(&seed); in rand_r_0300() [all …]
|
/third_party/ffmpeg/tests/fate/ |
D | amrwb.mak | 2 fate-amrwb-6k60: CMD = pcm -i $(TARGET_SAMPLES)/amrwb/seed-6k60.awb 3 fate-amrwb-6k60: REF = $(SAMPLES)/amrwb/seed-6k60.pcm 6 fate-amrwb-8k85: CMD = pcm -i $(TARGET_SAMPLES)/amrwb/seed-8k85.awb 7 fate-amrwb-8k85: REF = $(SAMPLES)/amrwb/seed-8k85.pcm 10 fate-amrwb-12k65: CMD = pcm -i $(TARGET_SAMPLES)/amrwb/seed-12k65.awb 11 fate-amrwb-12k65: REF = $(SAMPLES)/amrwb/seed-12k65.pcm 14 fate-amrwb-14k25: CMD = pcm -i $(TARGET_SAMPLES)/amrwb/seed-14k25.awb 15 fate-amrwb-14k25: REF = $(SAMPLES)/amrwb/seed-14k25.pcm 19 fate-amrwb-15k85: CMD = pcm -i $(TARGET_SAMPLES)/amrwb/seed-15k85.awb 20 fate-amrwb-15k85: REF = $(SAMPLES)/amrwb/seed-15k85.pcm [all …]
|
/third_party/libdrm/ |
D | xf86drmRandom.c | 83 drm_public void *drmRandomCreate(unsigned long seed) in drmRandomCreate() argument 104 state->seed = seed; in drmRandomCreate() 107 if (state->seed <= 0) state->seed = 1; in drmRandomCreate() 108 if (state->seed >= state->m) state->seed = state->m - 1; in drmRandomCreate() 125 hi = s->seed / s->q; in drmRandom() 126 lo = s->seed % s->q; in drmRandom() 127 s->seed = s->a * lo - s->r * hi; in drmRandom() 128 if ((s->a * lo) <= (s->r * hi)) s->seed += s->m; in drmRandom() 130 return s->seed; in drmRandom()
|
/third_party/boost/boost/random/ |
D | additive_combine.hpp | 82 _mlcg1.seed(seed_arg); in BOOST_RANDOM_DETAIL_ARITHMETIC_CONSTRUCTOR() 83 _mlcg2.seed(seed_arg); in BOOST_RANDOM_DETAIL_ARITHMETIC_CONSTRUCTOR() 100 _mlcg1.seed(seq); in BOOST_RANDOM_DETAIL_SEED_SEQ_CONSTRUCTOR() 101 _mlcg2.seed(seq); in BOOST_RANDOM_DETAIL_SEED_SEQ_CONSTRUCTOR() 128 void seed() in seed() function in boost::random::additive_combine_engine 130 _mlcg1.seed(); in seed() 131 _mlcg2.seed(); in seed() 141 _mlcg1.seed(seed_arg); in BOOST_RANDOM_DETAIL_ARITHMETIC_SEED() 142 _mlcg2.seed(seed_arg); in BOOST_RANDOM_DETAIL_ARITHMETIC_SEED() 154 _mlcg1.seed(seq); in BOOST_RANDOM_DETAIL_SEED_SEQ_SEED() [all …]
|
/third_party/boost/libs/container_hash/test/ |
D | hash_fwd_test.hpp | 44 std::size_t seed = 0; in hash_value() local 45 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value1); in hash_value() 46 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value2); in hash_value() 47 return seed; in hash_value() 63 std::size_t seed = in hash_value() local 65 BOOST_HASH_TEST_NAMESPACE::hash_range(seed, x.values.begin(), x.values.end()); in hash_value() 66 return seed; in hash_value() 86 std::size_t seed = 0; in hash_value() local 87 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value1); in hash_value() 88 BOOST_HASH_TEST_NAMESPACE::hash_combine(seed, x.value2); in hash_value() [all …]
|
/third_party/mindspore/tests/st/ops/gpu/ |
D | test_random_categorical_op.py | 26 def __init__(self, num_sample, seed=0, dtype=ms.int64): argument 30 self.seed = seed 33 return self.rc(logits, self.num_sample, self.seed) 42 seed = 5 46 random_cateogoric = RCnet(num_sample, seed, dtype) 57 seed = 5 61 random_cateogoric = RCnet(num_sample, seed, dtype) 72 seed = 5 76 random_cateogoric = RCnet(num_sample, seed, dtype) 87 seed = 5 [all …]
|
/third_party/glib/glib/ |
D | grand.c | 179 g_rand_new_with_seed (guint32 seed) in g_rand_new_with_seed() argument 182 g_rand_set_seed (rand, seed); in g_rand_new_with_seed() 199 g_rand_new_with_seed_array (const guint32 *seed, in g_rand_new_with_seed_array() argument 203 g_rand_set_seed_array (rand, seed, seed_length); in g_rand_new_with_seed_array() 221 guint32 seed[4]; in g_rand_new() local 243 r = fread (seed, sizeof (seed), 1, dev_urandom); in g_rand_new() 259 seed[0] = now_us / G_USEC_PER_SEC; in g_rand_new() 260 seed[1] = now_us % G_USEC_PER_SEC; in g_rand_new() 261 seed[2] = getpid (); in g_rand_new() 262 seed[3] = getppid (); in g_rand_new() [all …]
|
/third_party/lz4/programs/ |
D | datagen.c | 92 static BYTE RDG_genChar(U32* seed, const litDistribTable lt) in RDG_genChar() argument 94 U32 id = RDG_rand(seed) & LTMASK; in RDG_genChar() 100 #define RDG_RAND15BITS ((RDG_rand(seed) >> 3) & 32767) 101 #define RDG_RANDLENGTH ( ((RDG_rand(seed) >> 7) & 7) ? (RDG_rand(seed) & 15) : (RDG_rand(seed) & 5… 107 U32* seed = seedPtr; in RDG_genBlock() local 111 size_t size0 = RDG_rand(seed) & 3; in RDG_genBlock() 113 size0 += RDG_rand(seed) & (size0-1); /* because size0 is power of 2*/ in RDG_genBlock() 120 buffPtr[pos-1] = RDG_genChar(seed, lt); in RDG_genBlock() 125 buffPtr[0] = RDG_genChar(seed, lt); in RDG_genBlock() 149 while (pos < d) buffPtr[pos++] = RDG_genChar(seed, lt); in RDG_genBlock() [all …]
|
/third_party/pixman/test/ |
D | utils-prng.c | 34 void smallprng_srand_r (smallprng_t *x, uint32_t seed) in smallprng_srand_r() argument 37 x->a = 0xf1ea5eed, x->b = x->c = x->d = seed; in smallprng_srand_r() 53 void prng_srand_r (prng_t *x, uint32_t seed) in prng_srand_r() argument 58 smallprng_srand_r (&x->p0, seed); in prng_srand_r() 60 x->b[0] = x->c[0] = x->d[0] = (seed = seed * 1103515245 + 12345); in prng_srand_r() 61 x->b[1] = x->c[1] = x->d[1] = (seed = seed * 1103515245 + 12345); in prng_srand_r() 62 x->b[2] = x->c[2] = x->d[2] = (seed = seed * 1103515245 + 12345); in prng_srand_r() 63 x->b[3] = x->c[3] = x->d[3] = (seed = seed * 1103515245 + 12345); in prng_srand_r() 67 smallprng_srand_r (&x->p0, seed); in prng_srand_r() 68 smallprng_srand_r (&x->p1, (seed = seed * 1103515245 + 12345)); in prng_srand_r() [all …]
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
D | PropertiesTest.java | 213 Object getSampleValueForType(Class<?> type, int seed) { in getSampleValueForType() argument 215 return seed * 1000001; in getSampleValueForType() 218 return (seed % 2) == 0; in getSampleValueForType() 221 if (seed == 0) in getSampleValueForType() 223 return new BigDecimal(seed * 1000002); in getSampleValueForType() 226 if (seed == 0) in getSampleValueForType() 228 return BigInteger.valueOf(seed * 1000003).toString(32); in getSampleValueForType() 231 if (seed == 0) in getSampleValueForType() 234 return values[seed % values.length]; in getSampleValueForType() 237 if (seed == 0) in getSampleValueForType() [all …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
D | PropertiesTest.java | 216 Object getSampleValueForType(Class<?> type, int seed) { in getSampleValueForType() argument 218 return seed * 1000001; in getSampleValueForType() 221 return (seed % 2) == 0; in getSampleValueForType() 224 if (seed == 0) in getSampleValueForType() 226 return new BigDecimal(seed * 1000002); in getSampleValueForType() 229 if (seed == 0) in getSampleValueForType() 231 return BigInteger.valueOf(seed * 1000003).toString(32); in getSampleValueForType() 234 if (seed == 0) in getSampleValueForType() 237 return values[seed % values.length]; in getSampleValueForType() 240 if (seed == 0) in getSampleValueForType() [all …]
|
/third_party/ffmpeg/tests/ |
D | videogen.c | 32 unsigned int seed, val; in myrnd() local 34 seed = *seed_ptr; in myrnd() 35 seed = (seed * 314159) + 1; in myrnd() 37 val = seed >> 24; in myrnd() 39 val = seed % n; in myrnd() 41 *seed_ptr = seed; in myrnd() 78 static unsigned int seed = 1; variable 87 objs[i].x = myrnd(&seed, w); in gen_image() 88 objs[i].y = myrnd(&seed, h); in gen_image() 89 objs[i].w = myrnd(&seed, w / 4) + 10; in gen_image() [all …]
|
/third_party/mesa3d/src/util/ |
D | rand_xor.c | 45 rand_xorshift128plus(uint64_t seed[2]) in rand_xorshift128plus() 47 uint64_t *s = seed; in rand_xorshift128plus() 59 s_rand_xorshift128plus(uint64_t seed[2], bool randomised_seed) in s_rand_xorshift128plus() 63 seed[0] = 0x3bffb83978e24f88; in s_rand_xorshift128plus() 64 seed[1] = 0x9238d5d56c71cd35; in s_rand_xorshift128plus() 72 ssize_t ret = getrandom(seed, seed_size, GRND_NONBLOCK); in s_rand_xorshift128plus() 79 if (read(fd, seed, seed_size) == seed_size) { in s_rand_xorshift128plus() 87 seed[0] = 0x3bffb83978e24f88; in s_rand_xorshift128plus() 88 seed[1] = time(NULL); in s_rand_xorshift128plus()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | Hashing.h | 190 inline uint64_t hash_1to3_bytes(const char *s, size_t len, uint64_t seed) { in hash_1to3_bytes() argument 196 return shift_mix(y * k2 ^ z * k3 ^ seed) * k2; in hash_1to3_bytes() 199 inline uint64_t hash_4to8_bytes(const char *s, size_t len, uint64_t seed) { in hash_4to8_bytes() argument 201 return hash_16_bytes(len + (a << 3), seed ^ fetch32(s + len - 4)); in hash_4to8_bytes() 204 inline uint64_t hash_9to16_bytes(const char *s, size_t len, uint64_t seed) { in hash_9to16_bytes() argument 207 return hash_16_bytes(seed ^ a, rotate(b + len, len)) ^ b; in hash_9to16_bytes() 210 inline uint64_t hash_17to32_bytes(const char *s, size_t len, uint64_t seed) { in hash_17to32_bytes() argument 215 return hash_16_bytes(rotate(a - b, 43) + rotate(c ^ seed, 30) + d, in hash_17to32_bytes() 216 a + rotate(b ^ k3, 20) - c + len + seed); in hash_17to32_bytes() 219 inline uint64_t hash_33to64_bytes(const char *s, size_t len, uint64_t seed) { in hash_33to64_bytes() argument [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | Hashing.h | 189 inline uint64_t hash_1to3_bytes(const char *s, size_t len, uint64_t seed) { in hash_1to3_bytes() argument 195 return shift_mix(y * k2 ^ z * k3 ^ seed) * k2; in hash_1to3_bytes() 198 inline uint64_t hash_4to8_bytes(const char *s, size_t len, uint64_t seed) { in hash_4to8_bytes() argument 200 return hash_16_bytes(len + (a << 3), seed ^ fetch32(s + len - 4)); in hash_4to8_bytes() 203 inline uint64_t hash_9to16_bytes(const char *s, size_t len, uint64_t seed) { in hash_9to16_bytes() argument 206 return hash_16_bytes(seed ^ a, rotate(b + len, len)) ^ b; in hash_9to16_bytes() 209 inline uint64_t hash_17to32_bytes(const char *s, size_t len, uint64_t seed) { in hash_17to32_bytes() argument 214 return hash_16_bytes(rotate(a - b, 43) + rotate(c ^ seed, 30) + d, in hash_17to32_bytes() 215 a + rotate(b ^ k3, 20) - c + len + seed); in hash_17to32_bytes() 218 inline uint64_t hash_33to64_bytes(const char *s, size_t len, uint64_t seed) { in hash_33to64_bytes() argument [all …]
|
/third_party/mindspore/tests/st/ops/cpu/ |
D | test_uniform_real.py | 25 def __init__(self, shape, seed=0, seed2=0): argument 28 self.seed = seed 30 self.uniformreal = P.UniformReal(seed, seed2) 40 seed = 10 43 net = Net(shape, seed, seed2) 48 seed = 0 51 net = Net(shape, seed, seed2) 58 seed = 0 61 net = Net(shape, seed, seed2)
|