One more changes in poppler../goo/FixedPoint.cc<br><br>-- int FixedPoint::div(int x, int y) {<br>-- #if 1 //~tmp<br>-- return ((FixPtInt64)x << fixptShift) / y;<br><br>++ int FixedPoint::div(int x, int y) {<br>++ #if 1 //~tmp<br>
++ if(y>0)<br>++ return ((FixPtInt64)x << fixptShift) / y;<br>++ else <br>++ return 0;<br><br><br>Thanks<br>Amit<br><br><div class="gmail_quote">On Fri, Dec 11, 2009 at 12:27 PM, amit aggarwal <span dir="ltr"><<a href="mailto:amitcs06@gmail.com">amitcs06@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">poppler/goo/FixedPoint.cc<br><br>Old Code<br>---int FixedPoint::mul(int x, int y) {<br>#if 1 //~tmp<br>
return ((FixPtInt64)x * y) >> fixptShift;<br><br>New Changes<br>+++<br>FixPtInt64 FixedPoint::mul(FixPtInt64 x, FixPtInt64 y) {<br>
#if 1 //~tmp<br> FixPtInt64 val;<br> val =((FixPtInt64)(x * y))>>fixptShift;<br><br> return val;<br><br><br>poppler/goo/FixedPoint.h<br><br>OldCode<br>--static FixedPoint make(int valA) { FixedPoint x; x.val = valA; return x; }<br>
<br>New changes<br>++ static FixedPoint make(FixPtInt64 valA) { FixedPoint x; x.val = valA; return x; }<br><br>-- static int mul(int x, int y);<br>++ static FixPtInt64 mul(FixPtInt64 x, FixPtInt64 y);<br><br><br>-- static int div(int x, int y);<br>
++ static FixPtInt64 div(FixPtInt64 x, FixPtInt64 y);<br><br>-- int val; // 16.16 fixed point<br>++ FixPtInt64 val; // 16.16 fixed point<br clear="all"><br>-- <br>Thanks<br><font color="#888888">Amit Aggarwal<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Thanks<br>Amit Aggarwal<br><br>