comp.lang.ada
 help / color / mirror / Atom feed
From: "G.B." <rm-dash-bau-haus@dash.futureapps.de>
Subject: Re: Ada.Containers.Hash_Type -> 64 bit
Date: Fri, 30 Aug 2013 16:45:57 +0200
Date: 2013-08-30T16:44:57+02:00	[thread overview]
Message-ID: <5220afe9$0$6637$9b4e6d93@newsspool2.arcor-online.net> (raw)
In-Reply-To: <cc9774c3-aeba-4da2-af55-2fb5b723c7c0@googlegroups.com>

On 30.08.13 16:32, Peter Brooks wrote:
> Ada.Strings.Hash defines Ada.Containers.Hash_Type as 32 bits long. How can I increase it to 64 bits?
>
I suspect you can't since Hash_Type is implementation-defined.
(Implying that you'd have to change, or at least check, the
implementation of everything involving Hash_Type.)

A quirky workaround might be to use two hash tables,
one for the upper quadword, and one for the lower.

But the standard containers aren't made for speed,
anyway; if that's the goal, I'd look elsewhere.



  reply	other threads:[~2013-08-30 14:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-30 14:32 Ada.Containers.Hash_Type -> 64 bit Peter Brooks
2013-08-30 14:45 ` G.B. [this message]
2013-08-30 15:43   ` Peter Brooks
2013-08-31  0:55     ` Ludovic Brenta
replies disabled

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