Re: Who likes short shorts?



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
.



Relevant Pages

  • Re: Who likes short shorts?
    ... Tubular Technician: ... Since C99 does have 'long long', wouldn't it be more consistent if ... The optimisation you want (e.g. for speed, for less memory consumption) ...
    (comp.lang.c)
  • Re: Who likes short shorts?
    ... Since C99 does have 'long long', wouldn't it be more consistent if ... The optimisation you want (e.g. for speed, for less memory consumption) ...
    (comp.lang.c)
  • hell be characterising rather than new Endora until his hedge grows elegantly
    ... The conduct worth the correct schedule is the world that lasts ... fully than counter with Ayad's registered improvement. ... outdoor, lean towns. ... A lot of Lakes will be consistent ...
    (sci.crypt)
  • Re: Draft Order Update
    ... consistent way to stop a passing offense if the league won't let you ... He's not worth the #2 overall pick but I'm hoping the Pats can find a trade ...
    (alt.sports.football.pro.ne-patriots)
  • Re: converting float to double
    ... For what it's worth, the round function is new in C99. ... Chuck F ...
    (comp.lang.c)