Home | History | Annotate | Download | only in dib

Lines Matching defs:kBase

20 constexpr int kBase = 256;
161 : a(FXSYS_round(src.a * kBase)),
162 b(FXSYS_round(src.b * kBase)),
163 c(FXSYS_round(src.c * kBase)),
164 d(FXSYS_round(src.d * kBase)),
165 e(FXSYS_round(src.e * kBase)),
166 f(FXSYS_round(src.f * kBase)) {}
170 *x1 = pdfium::base::saturated_cast<int>(val.first / kBase);
171 *y1 = pdfium::base::saturated_cast<int>(val.second / kBase);
176 return std::make_pair(a * x + c * y + e + kBase / 2,
177 b * x + d * y + f + kBase / 2);
194 *x1 = pdfium::base::saturated_cast<int>(val.first / kBase);
195 *y1 = pdfium::base::saturated_cast<int>(val.second / kBase);
197 *res_x = static_cast<int>(fmodf(val.first, kBase));
198 *res_y = static_cast<int>(fmodf(val.second, kBase));
199 if (*res_x < 0 && *res_x > -kBase)
200 *res_x = kBase + *res_x;
201 if (*res_y < 0 && *res_x > -kBase)
202 *res_y = kBase + *res_y;