On Fri, Oct 3, 2014 at 4:05 PM, James Cloos <cl...@jhcloos.com> wrote: >>>>>> "AP" == Alexei Podtelezhnikov <apodt...@gmail.com> 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? _______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel