comp.lang.ada
 help / color / mirror / Atom feed
From: wes@obie.UUCP (Barnacle Wes)
Subject: Re: Need 64 bit integers on VAX
Date: 4 Feb 88 07:05:51 GMT	[thread overview]
Message-ID: <31@obie.UUCP> (raw)
In-Reply-To: 1234@wayback.UUCP

In article <1234@wayback.UUCP>, arny@wayback.UUCP (Arny B. Engelson) writes:
> 
> Is using something like Unsigned_Quadword, and overloading the arithmetic
> operators, the way to go?  Has someone already coded these routines?

Yes, this is the way to go, that's why the features were put into the
language.  The problem with doing a good generic package in Ada is
that it takes time, and on a "quickie" program you don't have the time
available.

I've got some pretty generic code around here somewhere for doing 64
bit ints in C, which you could probably convert to Ada and overload as
operators.  That assumes, of course, that you know C.

(My only hands-on experience with Ada overloading was a package I
wrote to handle 48-bit binary numbers as characters for a program that
decoded messages on a DoD embedded network.  The package wasn't in the
version that got qualified and shown to the world, unfortunately.)

-- 
	{backbones}!utah-cs!utah-gr!uplherc!sp7040!obie!wes

	"Against Stupidity, The Gods Themselves Contend in Vain."
							-- Asimov

  reply	other threads:[~1988-02-04  7:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-01-28 15:13 Need 64 bit integers on VAX Arny B. Engelson
1988-02-04  7:05 ` Barnacle Wes [this message]
1988-02-11  0:09   ` Dave Seward
1988-02-19 21:06     ` Barnacle Wes
1988-02-27  6:01     ` terry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox