Re: 64 bit data types




"Florent Ouchet" <ouchet.florent@xxxxxxxxxxx> wrote
> What we need now is fixed size data types (Byte, Word, DWord, QWord,
> UInt64, ShortInt, SmallInt, LongInt, Int64) ...

Thanks for starting this thread. For any new names, I hope
that we can invent names that are self-descriptive.

All that I can guess about the old ShortInt is that it is
smaller than the LongInt, and the SmallInt is larger than
the TinyInt and smaller than the BigInt. I have no idea
if ShortInt is larger or smaller than SmallInt nor if
LongInt is larger or smaller than BigInt, unless I look
them up.

In my code, I usually try to document the size of these
more nebulous things with comments.

Further, in the past, I have worked with machines
where the "words" were 12 (CDC peripheral processors),
16, 32 (IBM), 48 (DataCraft), and 60-bits (CDC-6400),
so I do not consider "word" very descriptive. I would
not be surprised if the next "native" size on the PC
after 64-bits was 96 rather than the power-of-two-
progression value 128.

Rgds, JohnH


.



Relevant Pages

  • Re: 64 bit data types
    ... I have no idea if ShortInt is larger or smaller than SmallInt nor if LongInt is larger or smaller than BigInt, ... where the "words" were 12 (CDC peripheral processors), ...
    (borland.public.delphi.non-technical)
  • Re: Why 64bit Delphi compiler from Borland may be meaningless!
    ... > ShortInt,> Byte, SmallInt, Word, LongInt, LongWord, and not the ... has always been to use LongInt instead of Integer for I/O (as well as ...
    (borland.public.delphi.non-technical)
  • Re: Q about statement in Shterns Core C++ A Software Engineering Approach
    ... this excerpt is confusing me: ... >For any platform, the following relation between returned values of ... >and longint is always 32 bits. ... >How can that shortint and longint always be the same size and always ...
    (alt.comp.lang.learn.c-cpp)
  • Re: Intel announces 64-bit extensions
    ... > for numbers with fixed length than ShortInt and LongInt. ... > introducing Int64 Borland made the right decision, noone ever wants to ... Word and Shortint were already in the language in Turbo Pascal 4, ...
    (borland.public.delphi.non-technical)
  • Re: Why go to .Net?
    ... Now what was the difference between ShortInt and SmallInt again? ... > chunks at a time? ... UInt64 is a .NET type, ...
    (borland.public.delphi.non-technical)