Home
last modified time | relevance | path

Searched refs:FXSYS_Mul (Results 1 – 13 of 13) sorted by relevance

/external/pdfium/core/src/fxge/agg/agg23/
Dfx_agg_curves.cpp62 FX_FLOAT d2 = FXSYS_fabs(FXSYS_Mul(x2 - x4, dy) - FXSYS_Mul(y2 - y4, dx)); in recursive_bezier()
63 FX_FLOAT d3 = FXSYS_fabs(FXSYS_Mul(x3 - x4, dy) - FXSYS_Mul(y3 - y4, dx)); in recursive_bezier()
76 if(FXSYS_Mul(d3, d3) <= FXSYS_Mul(m_distance_tolerance_square, in recursive_bezier()
77 FXSYS_Mul(dx, dx) + FXSYS_Mul(dy, dy))) { in recursive_bezier()
83 if(FXSYS_Mul(d2, d2) <= FXSYS_Mul(m_distance_tolerance_square, in recursive_bezier()
84 FXSYS_Mul(dx, dx) + FXSYS_Mul(dy, dy))) { in recursive_bezier()
90 if(FXSYS_Mul(d2 + d3, d2 + d3) <= FXSYS_Mul(m_distance_tolerance_square, in recursive_bezier()
91 FXSYS_Mul(dx, dx) + FXSYS_Mul(dy, dy))) { in recursive_bezier()
Dagg_math_stroke.h70 out_vertices.add(coord_type(x + FXSYS_Mul(width, FXSYS_cos(a1)), in stroke_calc_arc()
71 y + FXSYS_Mul(width, FXSYS_sin(a1)))); in stroke_calc_arc()
81 out_vertices.add(coord_type(x + FXSYS_Mul(width, FXSYS_cos(a1)), in stroke_calc_arc()
82 y + FXSYS_Mul(width, FXSYS_sin(a1)))); in stroke_calc_arc()
110 FX_FLOAT lim = FXSYS_Mul(width, miter_limit); in stroke_calc_miter()
118 if((FXSYS_Mul(x2 - v0.x, dy1) - FXSYS_Mul(v0.y - y2, dx1) < 0) != in stroke_calc_miter()
119 (FXSYS_Mul(x2 - v2.x, dy1) - FXSYS_Mul(v2.y - y2, dx1) < 0)) { in stroke_calc_miter()
136 out_vertices.add(coord_type(v1.x + dx1 + FXSYS_Mul(dy1, miter_limit), in stroke_calc_miter()
137 v1.y - dy1 + FXSYS_Mul(dx1, miter_limit))); in stroke_calc_miter()
138 out_vertices.add(coord_type(v1.x + dx2 - FXSYS_Mul(dy2, miter_limit), in stroke_calc_miter()
[all …]
Dagg_math.h29 return FXSYS_Mul(x - x2, y2 - y1) - FXSYS_Mul(y - y2, x2 - x1); in calc_point_location()
53 FX_FLOAT num = FXSYS_Mul(ay - cy, dx - cx) - FXSYS_Mul(ax - cx, dy - cy); in calc_intersection()
54 FX_FLOAT den = FXSYS_Mul(bx - ax, dy - cy) - FXSYS_Mul(by - ay, dx - cx); in calc_intersection()
Dagg_clip_liang_barsky.h89 *y++ = (T)(y1 + FXSYS_Mul(deltay, tinx)); in clip_liang_barsky()
91 *x++ = (T)(x1 + FXSYS_Mul(deltax, tiny)); in clip_liang_barsky()
99 *y++ = (T)(y1 + FXSYS_Mul(deltay, toutx)); in clip_liang_barsky()
101 *x++ = (T)(x1 + FXSYS_Mul(deltax, touty)); in clip_liang_barsky()
/external/pdfium/core/src/fxge/ge/
Dfx_ge_path.cpp269 start_c = middle_y - FXSYS_Mul(start_k, middle_x); in _UpdateLineJoinPoints()
275 end_c = middle_y - FXSYS_Mul(end_k, middle_x); in _UpdateLineJoinPoints()
287 if (start_y < FXSYS_Mul(end_k, start_x) + end_c) { in _UpdateLineJoinPoints()
288 outside_y = FXSYS_Mul(end_k, outside_x) + end_c + end_dc; in _UpdateLineJoinPoints()
290 outside_y = FXSYS_Mul(end_k, outside_x) + end_c - end_dc; in _UpdateLineJoinPoints()
303 if (end_y < FXSYS_Mul(start_k, end_x) + start_c) { in _UpdateLineJoinPoints()
304 outside_y = FXSYS_Mul(start_k, outside_x) + start_c + start_dc; in _UpdateLineJoinPoints()
306 outside_y = FXSYS_Mul(start_k, outside_x) + start_c - start_dc; in _UpdateLineJoinPoints()
322 if (end_y < FXSYS_Mul(start_k, end_x) + start_c) { in _UpdateLineJoinPoints()
328 if (start_y < FXSYS_Mul(end_k, start_x) + end_c) { in _UpdateLineJoinPoints()
[all …]
/external/pdfium/core/src/fpdfapi/fpdf_render/
Dfpdf_render_pattern.cpp42 FX_FLOAT axis_len_square = FXSYS_Mul(x_span, x_span) + FXSYS_Mul(y_span, y_span); in _DrawAxialShading()
79 …FX_FLOAT scale = FXSYS_Div(FXSYS_Mul(x - start_x, x_span) + FXSYS_Mul(y - start_y, y_span), axis_l… in _DrawAxialShading()
153 FX_FLOAT a = FXSYS_Mul(start_x - end_x, start_x - end_x) + in _DrawRadialShading()
154FXSYS_Mul(start_y - end_y, start_y - end_y) - FXSYS_Mul(start_r - end_r, start_r - end_r); in _DrawRadialShading()
160 …int length = (int)FXSYS_sqrt((FXSYS_Mul(start_x - end_x, start_x - end_x) + FXSYS_Mul(start_y - en… in _DrawRadialShading()
170 …FX_FLOAT b = -2 * (FXSYS_Mul(x - start_x, end_x - start_x) + FXSYS_Mul(y - start_y, end_y - start_… in _DrawRadialShading()
171 FXSYS_Mul(start_r, end_r - start_r)); in _DrawRadialShading()
172 FX_FLOAT c = FXSYS_Mul(x - start_x, x - start_x) + FXSYS_Mul(y - start_y, y - start_y) - in _DrawRadialShading()
173 FXSYS_Mul(start_r, start_r); in _DrawRadialShading()
178 FX_FLOAT b2_4ac = FXSYS_Mul(b, b) - 4 * FXSYS_Mul(a, c); in _DrawRadialShading()
/external/pdfium/core/src/fpdfapi/fpdf_page/
Dfpdf_page_graph_state.cpp328 FX_FLOAT size = FXSYS_Mul(unit, GetFontSize()); in GetFontSizeV()
335 FX_FLOAT size = FXSYS_Mul(unit, GetFontSize()); in GetFontSizeH()
474 pData->m_DashPhase = FXSYS_Mul(phase, scale); in SetLineDash()
477 pData->m_DashArray[i] = FXSYS_Mul(pArray->GetNumber(i), scale); in SetLineDash()
Dfpdf_page_parser.cpp1278 … m_pCurStates->m_TextX -= FXSYS_Mul(fInitKerning, m_pCurStates->m_TextState.GetFontSize()) / 1000; in AddTextObject()
1280 … m_pCurStates->m_TextY -= FXSYS_Mul(fInitKerning, m_pCurStates->m_TextState.GetFontSize()) / 1000; in AddTextObject()
1318 …m_pCurStates->m_TextX -= FXSYS_Mul(pKerning[nsegs - 1], m_pCurStates->m_TextState.GetFontSize()) /… in AddTextObject()
1320 …m_pCurStates->m_TextY -= FXSYS_Mul(pKerning[nsegs - 1], m_pCurStates->m_TextState.GetFontSize()) /… in AddTextObject()
1347 …m_pCurStates->m_TextX -= FXSYS_Mul(pArray->GetNumber(i), m_pCurStates->m_TextState.GetFontSize()) … in Handle_ShowText_Positioning()
Dfpdf_page.cpp409 curpos -= FXSYS_Mul(m_pCharPos[i - 1], fontsize) / 1000; in CalcPositionData()
499 *pTextAdvanceX = FXSYS_Mul(curpos, horz_scale); in CalcPositionData()
/external/pdfium/core/src/fxge/dib/
Dfx_dib_engine.cpp235 double src_left = FXSYS_Mul(scale_x, (FX_FLOAT)(clip_rect.left) + base_x); in CStretchEngine()
236 double src_right = FXSYS_Mul(scale_x, (FX_FLOAT)(clip_rect.right) + base_x); in CStretchEngine()
237 double src_top = FXSYS_Mul(scale_y, (FX_FLOAT)(clip_rect.top) + base_y); in CStretchEngine()
238 double src_bottom = FXSYS_Mul(scale_y, (FX_FLOAT)(clip_rect.bottom) + base_y); in CStretchEngine()
/external/pdfium/core/src/fpdfapi/fpdf_font/
Dfpdf_font.cpp1630 m_FontBBox.left = (FX_INT32)(FXSYS_Mul(pBBox->GetNumber(0), xscale) * 1000); in _Load()
1631 m_FontBBox.bottom = (FX_INT32)(FXSYS_Mul(pBBox->GetNumber(1), yscale) * 1000); in _Load()
1632 m_FontBBox.right = (FX_INT32)(FXSYS_Mul(pBBox->GetNumber(2), xscale) * 1000); in _Load()
1633 m_FontBBox.top = (FX_INT32)(FXSYS_Mul(pBBox->GetNumber(3), yscale) * 1000); in _Load()
1646 … m_CharWidthL[StartChar + i] = FXSYS_round(FXSYS_Mul(pWidthArray->GetNumber(i), xscale) * 1000); in _Load()
/external/pdfium/core/include/fxcrt/
Dfx_system.h304 #define FXSYS_Mul(a, b) ((a) * (b)) macro
/external/pdfium/core/src/fxge/win32/
Dfx_win32_gdipext.cpp837 FX_FLOAT distance_square = FXSYS_Mul(dx, dx) + FXSYS_Mul(dy, dy); in IsSmallTriangle()