Fastest minimum-width integer types and limits macros

David Brown david.brown@hesbynett.no
Thu Sep 29 23:12:00 GMT 2011


On 29/09/11 20:31, Gunther Nikl wrote:
> Hi!
>
> Is there a special requirement about the value of the limits
> macros for fastest minimum-width integers? Eg. would it be legal
> to use the limits of a a "signed char" if int_fast8_t is defined
> in terms of an int? Or is it required to use the proper limit of
> int?
>
> Thank you,
> Gunther
>

That depends entirely on what you want to use the limit macros for.  But 
normally, you would want to use INT_FAST8_MIN and INT_FAST8_MAX.




More information about the Gcc-help mailing list