Lines Matching refs:denom
530 SkFixed denom = rand.nextS(); in DEF_TEST() local
531 SkFixed result = SkFixedDiv(numer, denom); in DEF_TEST()
532 SkLONGLONG check = ((SkLONGLONG)numer << 16) / denom; in DEF_TEST()
535 (void)SkCLZ(denom); in DEF_TEST()
545 result = SkFractDiv(numer, denom); in DEF_TEST()
546 check = ((SkLONGLONG)numer << 30) / denom; in DEF_TEST()
558 denom = denom << 8 >> 8; in DEF_TEST()
560 result = SkFixedMul(numer, denom); in DEF_TEST()
561 SkFixed r2 = symmetric_fixmul(numer, denom); in DEF_TEST()
568 if (numer >= 0 && denom >= 0) { in DEF_TEST()
569 SkFixed mean = SkFixedMean(numer, denom); in DEF_TEST()
570 float prod = SkFixedToFloat(numer) * SkFixedToFloat(denom); in DEF_TEST()
578 SkFixed mod = SkFixedMod(numer, denom); in DEF_TEST()
580 float d = SkFixedToFloat(denom); in DEF_TEST()
692 T denom; in test_divmod() member
706 const T denom = kEdgeCases[i].denom; in test_divmod() local
708 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
709 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
710 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()
716 T denom = 0; in test_divmod() local
717 while (0 == denom) { in test_divmod()
718 denom = (T)rand.nextS(); in test_divmod()
721 SkTDivMod(numer, denom, &div, &mod); in test_divmod()
722 REPORTER_ASSERT(r, numer/denom == div); in test_divmod()
723 REPORTER_ASSERT(r, numer%denom == mod); in test_divmod()