Lines Matching refs:denom
458 SkFixed denom = rand.nextS(); in DEF_TEST() local
459 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST()
460 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST()
463 (void)SkCLZ(denom); in DEF_TEST()
472 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8x\n", numer, denom, result, check); in DEF_TEST()
527 T denom; in test_divmod() member
541 const T denom = kEdgeCases[i].denom; in test_divmod() local
543 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
544 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
545 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()
551 T denom = 0; in test_divmod() local
552 while (0 == denom) { in test_divmod()
553 denom = (T)rand.nextS(); in test_divmod()
556 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
557 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
558 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()