comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Davies <joviangm@gmail.com>
Subject: Re: Large Integer Overflow - Causing a Bottleneck - Any solution.
Date: Thu, 4 May 2017 08:49:20 -0700 (PDT)
Date: 2017-05-04T08:49:20-07:00	[thread overview]
Message-ID: <4b7a7a25-d1b2-4fd0-9943-da611e53e307@googlegroups.com> (raw)
In-Reply-To: <lyk25xkj7o.fsf@pushface.org>

On Wednesday, 3 May 2017 17:18:00 UTC+1, Simon Wright  wrote:
> 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;

With Gnat, I believe that Long_Integer is still 32-bit and for 64-bit you
need Long_Long_Integer. Or use "type Int64 is range -(2**63) .. 2**63-1". 


  reply	other threads:[~2017-05-04 15: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 [this message]
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