🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3857

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

#3857
From: Colin Plumb
Date: Fri, 25 Aug 1995 04:55
32 lines
1957 bytes
In article <aeb.809273431@news.cwi.nl>, Andries Brouwer <aeb@cwi.nl> wrote:
>colin@nyx10.cs.du.edu (Colin Plumb) writes:
>: I was coming up with a list of reasons why mandating more than 64 bits
>: for now is unnecessary when I thought of a very important 128-bit
>: application: IPv6 addresses.
>
> I know a very important 4096-bit application: boot sectors.
>
> (But I don't use arithmetic on them, but instead treat them as
>   typedef struct { char a[512]; } bootsector;
> Do you use arithmetic on IPv6 addresses?)

Well, various hashing algorithms might.  And you want to do a variety
of bit-masking and comparing on them.  I agree that the manipulations
one performs on them are limited, but the fact that current 32-bit IPv4
addresses can be treated as an integral type and have things done to
them atomically is very nice.  That would be lost.

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

I tend to agree.  I just thought the IPv6 issue raised some points.
Basically, addresses count.  Somewhat inefficiently, but an address is
meant to correspond to an object (as opposed to, say, a continuous
variable where you could question how accurate the measurement is and
whether carrying more significant bits is warranted), just like file
offsets, so there's at least one example of a count larger than 64 bits
in serious use in the world.

I just hadn't thought of it, and thought others might not have, either.
-- 
	-Colin
Technical Details
Message-ID: <41jl46$pro@nyx10.cs.du.edu>
Path: arc1-ca.pugleaf.net!nyx10.cs.du.edu!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
Path: arc1-ca.pugleaf.net!nyx10.cs.du.edu!not-for-mail
From: colin@nyx10.cs.du.edu (Colin Plumb)
Newsgroups: comp.std.c
Subject: Re: Why "long long" doesn't work.
Date: 24 Aug 1995 22:55:34 -0600
Organization: University of Denver, Dept. of Math & Comp. Sci.
Message-ID: <41jl46$pro@nyx10.cs.du.edu>
References: <PZBOwQ9ytN2I084yn@csn.net> <3bsOwQ9ytdOV084yn@csn.net> <41hoed$njf@nyx10.cs.du.edu> <aeb.809273431@news.cwi.nl>
NNTP-Posting-Host: nyx10.cs.du.edu