🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3864

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

#3864
From: Zefram
Date: Fri, 25 Aug 1995 22:28
18 lines
1267 bytes
Andries Brouwer <aeb@cwi.nl> wrote:
>Do you use arithmetic on IPv6 addresses?)

Yes.  Generally bitwise and/or/xor, so it's not all that inconvenient
to use an array of char/short/int/long, but there's the problem: which
is more efficient?  If a processor has native instructions to perform
these operations on 64 bit values, it would be ludicrous to handle an
IPv6 address one character at a time.  Conversely, on a 16-bit machine
it would be inefficient (though less so) to have the compiler simulate
32- or 64-bit arithmetic and then to simulate 128-bit operations over
the top of that.

>There is no need to have integral types that are required to have
>more than 64 bits.

"640K ought to be enough for anyone."

-zefram
Technical Details
Message-ID: <1995Aug25.222848.12770@dcs.warwick.ac.uk>
Path: arc1-ca.pugleaf.net!news.dcs.warwick.ac.uk!not-for-mail
References: <PZBOwQ9ytN2I084yn@csn.net> <3bsOwQ9ytdOV084yn@csn.net> <41hoed$njf@nyx10.cs.du.edu> <aeb.809273431@news.cwi.nl>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!news.dcs.warwick.ac.uk!not-for-mail
From: A.Main@dcs.warwick.ac.uk (Zefram)
Subject: Re: Why "long long" doesn't work.
X-Nntp-Posting-Host: stone
Message-ID: <1995Aug25.222848.12770@dcs.warwick.ac.uk>
Sender: news@dcs.warwick.ac.uk (Network News)
Organization: Department of Computer Science, Warwick University, England
References: <PZBOwQ9ytN2I084yn@csn.net> <3bsOwQ9ytdOV084yn@csn.net> <41hoed$njf@nyx10.cs.du.edu> <aeb.809273431@news.cwi.nl>
Date: Fri, 25 Aug 1995 22:28:48 GMT