comp.lang.ada
 help / color / mirror / Atom feed
* Hash Type Size
@ 2013-08-18 21:05 sbelmont700
  2013-08-19  1:03 ` AdaMagica
  2013-08-19 22:12 ` Randy Brukardt
  0 siblings, 2 replies; 15+ messages in thread
From: sbelmont700 @ 2013-08-18 21:05 UTC (permalink / raw)


Hi,

What is the size of Ada.Containers.Hash_Type intended to be?  The LRM advises that "Hash_Type'Modulus should be at least 2**32", but this makes hashing a value on a 64-bit machine particularly unpleasant, since my implementation (MinGW-64) still defines it as 32-bit.  Is the intent that Hash_Type should be the native size of the machine (and the implementation is wrong/advice is vague), or that it actually should be 32-bit if possible?

-sb

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-09-05 19:30 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-18 21:05 Hash Type Size sbelmont700
2013-08-19  1:03 ` AdaMagica
2013-08-19 22:21   ` Randy Brukardt
2013-08-19 22:29     ` Randy Brukardt
2013-08-19 22:12 ` Randy Brukardt
2013-08-31  6:22   ` Peter Brooks
2013-08-31 15:57     ` sbelmont700
2013-09-03  1:47       ` Randy Brukardt
2013-09-03  2:31         ` Peter Brooks
2013-09-03 10:50           ` John B. Matthews
2013-09-03 17:18             ` Peter Brooks
2013-09-03 21:21               ` John B. Matthews
2013-09-04  4:50               ` Paul Rubin
2013-09-04  4:54                 ` Paul Rubin
2013-09-05 19:30                   ` John B. Matthews

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