Lines Matching refs:denom
562 SkFixed denom = rand.nextS(); in DEF_TEST() local
563 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST()
564 int64_t check = SkLeftShift((int64_t)numer, 16) / denom; in DEF_TEST()
567 (void)SkCLZ(denom); in DEF_TEST()
576 ERRORF(reporter, "\nFixed Divide: %8x / %8x -> %8x %8x\n", numer, denom, result, check); in DEF_TEST()
633 T denom; in test_divmod() member
647 const T denom = kEdgeCases[i].denom; in test_divmod() local
649 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
650 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
651 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()
657 T denom = 0; in test_divmod() local
658 while (0 == denom) { in test_divmod()
659 denom = (T)rand.nextS(); in test_divmod()
662 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
663 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
664 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()