Article View: comp.std.c
Article #3795Re: Why "long long" doesn't work.
From: Andries Brouwer
Date: Sun, 20 Aug 1995 02:39
Date: Sun, 20 Aug 1995 02:39
24 lines
1532 bytes
1532 bytes
ffarance@aol.com (FFarance) writes: :: From: thads@csn.net (Thad Smith) :: :: The primary point of integers is to count. :: When do you need to count beyond 2 to the 40th? 2 to the 64th? :: :: Other conceivable uses are for high-resolution fixed point arithmetic :: (why not use floating point?), structures holding several fields (why :: not declare these as actual structures?) and number theory, as used in :: RSA computing (you need more precision anyway for this application). : The use of large integers doesn't mean we need to count that high. If : that were the case, mathematics would be confined to small numbers. A : couple every day examples from computing would be a 64-bit timestamp : (high order is number of seconds, low order is fractions down to about : 250 picoseconds) or a 64-bit fat pointer (high order is IP address, low : order is local memory address). So what you are saying here, is that Thad is right - your examples are structures with several fields (and still only need 64 bits). There is no good reason to consider integer types that are required to have more than 64 bits.
Technical Details
Message-ID:
<aeb.808886342@news.cwi.nl>Path:
arc1-ca.pugleaf.net!news.cwi.nl!aebReferences:
<pHZNwQ9ytpbI084yn@csn.net> <415fd6$2jt@newsbf02.news.aol.com>Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c Path: arc1-ca.pugleaf.net!news.cwi.nl!aeb From: aeb@cwi.nl (Andries Brouwer) Subject: Re: Why "long long" doesn't work. Message-ID: <aeb.808886342@news.cwi.nl> Sender: news@cwi.nl (The Daily Dross) Nntp-Posting-Host: zeus.cwi.nl Organization: CWI, Amsterdam References: <pHZNwQ9ytpbI084yn@csn.net> <415fd6$2jt@newsbf02.news.aol.com> Date: Sun, 20 Aug 1995 02:39:02 GMT