From: Simon Wright <simon@pushface.org>
Subject: Re: Large Integer Overflow - Causing a Bottleneck - Any solution.
Date: Wed, 03 May 2017 17:18:03 +0100
Date: 2017-05-03T17:18:03+01:00 [thread overview]
Message-ID: <lyk25xkj7o.fsf@pushface.org> (raw)
In-Reply-To: 45c389ad-5b2c-4f6a-9003-8a64d41d9ddc@googlegroups.com
Austin Obyrne <austin.obyrne@hotmail.com> writes:
> 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.
>
> 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.
Even where a GNAT is built for a machine with 64-bit addresses, it uses
32-bit integers as you have seen.
You could try, near the top of your program (assuming it's just one
compilation unit),
subtype Integer is Long_Integer;
next prev parent reply other threads:[~2017-05-03 16:18 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 [this message]
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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox