[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] FT_LONG64 truncation at 32
From: |
Alexei Podtelezhnikov |
Subject: |
Re: [ft-devel] FT_LONG64 truncation at 32 |
Date: |
Mon, 18 Aug 2014 09:13:53 -0400 |
On Sat, Aug 16, 2014 at 8:14 AM, Alexei Podtelezhnikov
<address@hidden> wrote:
> Under FT_LONG64 FT_DivFix truncates the result at 32 bits, see
> ftcalc.c:271. Interestingly, FT_MulFix and FT_MulDiv do not do that,
> although it also is possible for them to exceed 32 bits in the result.
> Which behavior would be correct? IMHO a function specified as FT_Long
> should not truncate at 32.
Ok, there was never a good reason to truncate at 32 bits. It was
introduced as a compiler warning fix:
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=1b3a0014e2ebad50efb6a0c1d7948a3c7ffc21a2