freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] FT_MulDiv optimization


From: Werner LEMBERG
Subject: Re: [ft-devel] FT_MulDiv optimization
Date: Fri, 04 Jul 2014 22:05:15 +0200 (CEST)

>> [...] We can finally turn the whole thing integer
>> 
>> a + b < 92681 - (c >> 16) + ((c+ 235935) >> 18)
>> 
>> Therefore, we do not need a special limit on c. The whole thing
>> becomes more permissive.
> 
> You could write it with <= instead of <.  No?
> 
> How about the simpler:
> 
> a + b <= 92681 - (c >> 16)
> 
> This has the same number of operations as my previous patch, but
> more permissive for all practical purposes though not *completely*
> covering the previous case.

I like this!


    Werner



reply via email to

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