Home
last modified time | relevance | path

Searched refs:fastrand (Results 1 – 11 of 11) sorted by relevance

/external/libyuv/files/unit_test/
Dunit_test.h109 inline int fastrand() { in fastrand() function
117 *reinterpret_cast<uint16_t*>(dst) = fastrand(); in MemRandomize()
121 *dst++ = fastrand(); in MemRandomize()
Dconvert_test.cc186 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
190 (fastrand() & 0xff); \
192 (fastrand() & 0xff); \
321 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
325 (fastrand() & 0xff); \
327 (fastrand() & 0xff); \
416 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
420 (fastrand() & 0xff); \
422 (fastrand() & 0xff); \
513 src_y[i * kWidth + j + OFF] = (fastrand() & 0xff); \
[all …]
Dcompare_test.cc51 src_a[i] = (fastrand() & 0xff); in TEST_F()
52 src_b[i] = (fastrand() & 0xff); in TEST_F()
480 src_a[i] = (fastrand() & 0xff); in TEST_F()
481 src_b[i] = (fastrand() & 0xff); in TEST_F()
599 src_a[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
600 src_b[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
708 src_a[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
709 src_b[(i * kSrcStride) + j] = (fastrand() & 0xff); in TEST_F()
Dcolor_test.cc69 uint8_t r = static_cast<uint8_t>(fastrand()); \
77 uint8_t r = static_cast<uint8_t>(fastrand()); \
86 uint8_t r = static_cast<uint8_t>(fastrand()); \
92 uint8_t r = static_cast<uint8_t>(fastrand()); \
327 float f = (fastrand() & 255) * 3.14f - 260.f; in TEST_F()
Dplanar_test.cc126 src_argb[i + off] = (fastrand() & 0xff); in TestAttenuateI()
197 src_argb[i + off] = (fastrand() & 0xff); in TestUnattenuateI()
1023 src_argb_a[i + OFF] = (fastrand() & 0xff); \
1024 src_argb_b[i + OFF] = (fastrand() & 0xff); \
1072 src_argb_a[i + off] = (fastrand() & 0xff); in TestBlend()
1073 src_argb_b[i + off] = (fastrand() & 0xff); in TestBlend()
1172 src_argb_a[i + off] = (fastrand() & 0xff); in TestBlendPlane()
1173 src_argb_b[i + off] = (fastrand() & 0xff); in TestBlendPlane()
1174 src_argb_alpha[i + off] = (fastrand() & 0xff); in TestBlendPlane()
1362 orig_y[i * (yw + b * 2) + j] = fastrand() & 0xff; in TEST_F()
[all …]
Drotate_test.cc44 src_i420[i] = fastrand() & 0xff; in I420TestRotate()
163 src_i444[i] = fastrand() & 0xff; in I444TestRotate()
281 src_nv12[i] = fastrand() & 0xff; in NV12TestRotate()
Drotate_argb_test.cc44 src_argb[i] = fastrand() & 0xff; in TestRotateBpp()
Dscale_argb_test.cc178 src_argb[(i * src_stride_argb) + j] = (fastrand() & 0xff); in ARGBClipTestFilter()
/external/rust/crates/tokio/src/util/
Drand.rs36 let mul = (self.fastrand() as u64).wrapping_mul(n as u64); in fastrand_n()
40 fn fastrand(&self) -> u32 { in fastrand() method
/external/rust/crates/tokio-stream/src/
Dstream_map.rs638 let mul = (self.fastrand() as u64).wrapping_mul(n as u64); in fastrand_n()
642 fn fastrand(&self) -> u32 { in fastrand() method
/external/rust/crates/rand/
DREADME.md35 alternatives including [fastrand](https://crates.io/crates/fastrand)