🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3791

Re: Why "long long" doesn't work.

#3791
From: Michael Shields
Date: Sat, 19 Aug 1995 23:59
17 lines
1214 bytes
In article <pHZNwQ9ytpbI084yn@csn.net>, Thad Smith <ThadSmith@acm.org> wrote:
> I haven't seen IEEE 1596.5, but have to wonder what the uses of
> integers beyond 40 bits or so is.  The primary point of integers is to
> count.  When do you need to count beyond 2 to the 40th?  2 to the
> 64th?

I recently wrote a program that spins through an INN history file and
calcuates the mean delay between posting and arrival for your news spool.
Because the mean delay in seconds times the number of articles can easily
exceed 2^32, I had to emulate 64-bit integers using two longs.

(Look in news.admin.technical for the code.)

Also consider a machine that has a clock accurate to 1 ms, and keeps a
variable with the uptime in microseconds.
-- 
Shields.
Technical Details
Message-ID: <415tsr$urm@yage.tembel.org>
Path: arc1-ca.pugleaf.net!news.tembel.org!not-for-mail
References: <1995Aug19.002934.12680@dcs.warwick.ac.uk> <413qbk$jeq@newsbf02.news.aol.com> <pHZNwQ9ytpbI084yn@csn.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.tembel.org!not-for-mail
From: shields@tembel.org (Michael Shields)
Newsgroups: comp.std.c
Subject: Re: Why "long long" doesn't work.
Date: 19 Aug 1995 23:59:23 -0000
Organization: Tembel's Hedonic Commune
Message-ID: <415tsr$urm@yage.tembel.org>
References: <1995Aug19.002934.12680@dcs.warwick.ac.uk> <413qbk$jeq@newsbf02.news.aol.com> <pHZNwQ9ytpbI084yn@csn.net>
NNTP-Posting-Host: yage.tembel.org
NNTP-Posting-User: shields