Lines Matching refs:rand
24 SkRandom rand; in test_clz() local
26 uint32_t mask = rand.nextU(); in test_clz()
87 SkRandom rand; in test_muldivround() local
89 unsigned a = rand.nextU() & 0x7FFF; in test_muldivround()
90 unsigned b = rand.nextU() & 0x7FFF; in test_muldivround()
202 static float nextFloat(SkRandom& rand) { in nextFloat() argument
204 data.fSignBitInt = rand.nextU(); in nextFloat()
272 SkRandom rand; in unittest_fastfloat() local
286 rand.setSeed(outer); in unittest_fastfloat()
288 float x = nextFloat(rand); in unittest_fastfloat()
298 int ival = rand.nextU() & 0xFFFFFF; in unittest_fastfloat()
441 SkRandom rand; in test_copysign() local
443 int ix = rand.nextS(); in test_copysign()
449 SkScalar sx = rand.nextSScalar1(); in test_copysign()
459 SkRandom rand; in DEF_TEST() local
491 int value = rand.nextS16(); in DEF_TEST()
492 int max = rand.nextU16(); in DEF_TEST()
504 p.setLength((SkScalar) rand.nextS(), in DEF_TEST()
505 (SkScalar) rand.nextS(), in DEF_TEST()
508 p.setLength((SkScalar) (rand.nextS() >> 13), in DEF_TEST()
509 (SkScalar) (rand.nextS() >> 13), in DEF_TEST()
526 SkFixed numer = rand.nextS(); in DEF_TEST()
527 SkFixed denom = rand.nextS(); in DEF_TEST()
619 SkRandom rand; in test_divmod() local
621 const T numer = (T)rand.nextS(); in test_divmod()
624 denom = (T)rand.nextS(); in test_divmod()