Re: Who likes short shorts?
- From: Philipp Klaus Krause <pkk@xxxxxxx>
- Date: Sun, 10 Feb 2008 19:03:44 +0100
Tomás Ó hÉilidhe schrieb:
Tubular Technician:
Hello, world!
(something I was wondering for a long time)
Since C99 does have 'long long', wouldn't it be more consistent if
there also was a 'short short' type?
That way, plain int could be 64 bits on platforms where that makes
sense, and still two smaller types would be free designating 32 and
16 bit types.
What does everyone think?
I'd rather the idea where you specify:
1) The range you want
2) The optimisation you want (e.g. for speed, for less memory consumption)
Something like:
int(min = -235,max = 78933,opt = fast) i;
Would that be worth the effort over current types such as
int_fast32_t
?
Philipp
.
- References:
- Who likes short shorts?
- From: Tubular Technician
- Re: Who likes short shorts?
- From: Tomás Ó hÉilidhe
- Who likes short shorts?
- Prev by Date: Re: A solution for the allocation failures problem
- Next by Date: Re: enum safety
- Previous by thread: Re: Who likes short shorts?
- Next by thread: Re: Who likes short shorts?
- Index(es):
Relevant Pages
|