freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] FT_MulDiv


From: Mike Owens
Subject: [Devel] FT_MulDiv
Date: Thu, 30 Aug 2001 08:10:31 -0400

Hello,
I've seen a couple of posts concerning FT_MulDiv() but have not seen any 
confirmation as to whether it's a problem. The code snippet below is from that 
function. I was wondering if the  'b' paramenter in ft_div64by32( temp.hi, 
temp.lo, b ) should be the 'c' parameter or not?
Could someone confirm?
>From ft_calc.c Freetype verion 2.0.2

FT_EXPORT_DEF(FT_Long) FT_MulDiv( FT_Long a, FT_Long b, FT_Long c)
{
     .........
     ..........
      temp2.hi = 0;      temp2.lo = (FT_UInt32)(c >> 1);      FT_Add64( &temp, 
&temp2, &temp );      a = ft_div64by32( temp.hi, temp.lo, b );
 .........
}

Thanks




reply via email to

[Prev in Thread] Current Thread [Next in Thread]