SkASSERT(top == 0 || top == -1);
return (SkScalar)result;
}
- static SkScalar div(SkDScalar numer, SkDScalar denom) {
+ static SkScalar divide(SkDScalar numer, SkDScalar denom) {
denom >>= 16;
return numer / denom;
}
static SkScalar SkDScalar_toScalar(SkDScalar value) {
return static_cast<float>(value);
}
- static SkScalar div(SkDScalar numer, SkDScalar denom) {
+ static SkScalar divide(SkDScalar numer, SkDScalar denom) {
return static_cast<float>(numer / denom);
}
#endif
M[3] = ddot(srcOP2, srcOP3, dstOP[1], dstOP[3]);
matrix->reset();
- matrix->setScaleX(div(M[0], det));
- matrix->setSkewX( div(M[1], det));
- matrix->setSkewY (div(M[2], det));
- matrix->setScaleY(div(M[3], det));
+ matrix->setScaleX(divide(M[0], det));
+ matrix->setSkewX( divide(M[1], det));
+ matrix->setSkewY (divide(M[2], det));
+ matrix->setScaleY(divide(M[3], det));
matrix->setTranslateX(dstAve.fX - dot(srcAve.fX, srcAve.fY,
matrix->getScaleX(), matrix->getSkewX()));
matrix->setTranslateY(dstAve.fY - dot(srcAve.fX, srcAve.fY,