freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] integer suffix abuse


From: suzuki toshiya
Subject: Re: [ft-devel] integer suffix abuse
Date: Thu, 25 Jun 2015 01:24:06 +0900
User-agent: Mozilla-Thunderbird 2.0.0.24 (X11/20100329)

Hmm, therefore, should we remove all constants using L suffix
directly, and use such constants as the macros which is defined
with appropriate suffix under the cpp-conditionals for 16-bit,
32-bit and 64-bit systems?

Regards,
mpsuzuki

Alexei Podtelezhnikov wrote:
> Hi All,
> 
> I think we abuse the suffix L in integer constants. I understand the
> desire to make sure that very common 0x10000L is 32-bit to represent a
> unit in 16.16 fixed-point representation. On modern 64-bit systems
> that actually becomes an unnecessary 64-bit constant. Perhaps the
> suffix was used with 16-bit systems in mind, but 0x10000 cannot fit
> into 16-bit integer and will always be 32-bit even on 16-bit systems.
> 
> Am I missing something?
> 
> Alexei
> 
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel



reply via email to

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