freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] [PATCH] Improve FT_MulFix


From: Alexei Podtelezhnikov
Subject: Re: [ft-devel] [PATCH] Improve FT_MulFix
Date: Fri, 3 Oct 2014 16:32:36 -0400

On Fri, Oct 3, 2014 at 4:05 PM, James Cloos <address@hidden> wrote:
>>>>>> "AP" == Alexei Podtelezhnikov <address@hidden> writes:
>
> AP> Never mind. Right-shifting negative numbers is implementation defined
> AP> (ANSI or C11), so it is not portable.
>
> Would replacing the >> 16 with / 65536L be fully portable?

Yes, but division is rounded towards zero so you'll need subtract
0x8000 to get rounding right. So is it really much better assembler
when all set and done?



reply via email to

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