From: Dennis Lee Bieber <wlfraed@ix.netcom.com>
Subject: Re: Large Integer Overflow - Causing a Bottleneck - Any solution.
Date: Thu, 04 May 2017 17:49:21 -0400
Date: 2017-05-04T17:49:21-04:00 [thread overview]
Message-ID: <858ngc9mg30b1ec36joah1m6o8j4t73go5@4ax.com> (raw)
In-Reply-To: 45c389ad-5b2c-4f6a-9003-8a64d41d9ddc@googlegroups.com
On Tue, 2 May 2017 07:48:17 -0700 (PDT), Austin Obyrne
<austin.obyrne@hotmail.com> declaimed the following:
>I am using a very old Ada compiler (gnat 311.p) in the Windows_7 operating system that has 64-bit architecture to write cryptography.
>
Frith preserve us... The last unencumbered AdaCore release was GNAT
3.15p, and even that is 20+ years old by now.
>Everything has gone well thus far but now I find I am being stymied from expanding my cipher by the upper bound placed by my Ada compiler on positive integers to 2^31 -1 or 2147483647 for positive integers.
>
>Is there any solution to this that won't want me to leave the main program in order to do it.
>
Write (implement) your own math package using a split record for 64-bit
integers...
type Long_Int is record
Upper : integer;
Lower : integer;
end record;
function "+" (left : Long_Int, right : Long_int) return Long_Int; ...
Don't forget to provide methods to convert regular integers to your new
ones...
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
prev parent reply other threads:[~2017-05-04 21:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-02 14:48 Large Integer Overflow - Causing a Bottleneck - Any solution Austin Obyrne
2017-05-02 20:13 ` Rich
2017-05-03 15:05 ` Luke A. Guest
2017-05-03 16:29 ` Rich
2017-05-03 16:18 ` Simon Wright
2017-05-04 15:49 ` Stephen Davies
2017-05-04 16:53 ` Simon Wright
2017-05-04 21:56 ` Dennis Lee Bieber
2017-05-05 8:28 ` Austin Obyrne
2017-05-04 21:49 ` Dennis Lee Bieber [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox