Lines Matching refs:check
140 what to do if the float exceeds 2^32-1, we check for that explicitly.
442 SkLONGLONG check = ((SkLONGLONG)numer << 16) / denom;
448 if (check > SK_MaxS32) {
449 check = SK_MaxS32;
450 } else if (check < -SK_MaxS32) {
451 check = SK_MinS32;
453 REPORTER_ASSERT(reporter, result == (int32_t)check);
456 check = ((SkLONGLONG)numer << 30) / denom;
459 if (check > SK_MaxS32) {
460 check = SK_MaxS32;
461 } else if (check < -SK_MaxS32) {
462 check = SK_MinS32;
464 REPORTER_ASSERT(reporter, result == (int32_t)check);
507 SkFract check = SkFloatToFract(sqrt(xx));
508 REPORTER_ASSERT(reporter, xr == check ||
509 xr == check-1 ||
510 xr == check+1);
514 check = SkFloatToFixed(sqrt(xx));
515 REPORTER_ASSERT(reporter, xr == check || xr == check-1);
519 check = (int32_t)sqrt(xx);
520 REPORTER_ASSERT(reporter, xr == check || xr == check-1);