Lines Matching refs:check
84 what to do if the float exceeds 2^32-1, we check for that explicitly.
386 SkLONGLONG check = ((SkLONGLONG)numer << 16) / denom;
392 if (check > SK_MaxS32) {
393 check = SK_MaxS32;
394 } else if (check < -SK_MaxS32) {
395 check = SK_MinS32;
397 REPORTER_ASSERT(reporter, result == (int32_t)check);
400 check = ((SkLONGLONG)numer << 30) / denom;
403 if (check > SK_MaxS32) {
404 check = SK_MaxS32;
405 } else if (check < -SK_MaxS32) {
406 check = SK_MinS32;
408 REPORTER_ASSERT(reporter, result == (int32_t)check);
451 SkFract check = SkFloatToFract(sqrt(xx));
452 REPORTER_ASSERT(reporter, xr == check ||
453 xr == check-1 ||
454 xr == check+1);
458 check = SkFloatToFixed(sqrt(xx));
459 REPORTER_ASSERT(reporter, xr == check || xr == check-1);
463 check = (int32_t)sqrt(xx);
464 REPORTER_ASSERT(reporter, xr == check || xr == check-1);