From: Georg Bauhaus <rm-host.bauhaus@maps.futureapps.de>
Subject: Re: FNV-1
Date: Fri, 01 Nov 2013 14:40:50 +0100
Date: 2013-11-01T14:40:50+01:00 [thread overview]
Message-ID: <5273af62$0$9520$9b4e6d93@newsspool1.arcor-online.net> (raw)
In-Reply-To: <f81bc576-54b0-47c4-8c01-2581a12a5b53@googlegroups.com>
On 31/10/13 00:31, sbelmont700@gmail.com wrote:
> Offset_512 : constant := 9659303129496669498009435400716310466090418745672637896108374329434462657994582932197716438449813051892206539805784495328239340083876191928701583869517785;
For cases where larger literals would hit parser limits,
or be in conflict with style guides, maybe some compiler
arithmetic prevents it, thus
Offset_512_Too : constant :=
96593031294966694980094354007163104660904187456726 * 10**(2*50 +4) +
37896108374329434462657994582932197716438449813051 * 10**(1*50 +4) +
892206539805784495328239340083876191928701583869517785;
private
Check : constant := Boolean'Pos -- compile time check
(case True is
when Offset_512 = Offset_512_Too => True,
when False => False);
The private part given as an example of assertions just when
they should be made compile time assertions.
prev parent reply other threads:[~2013-11-01 13:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-30 23:31 FNV-1 sbelmont700
2013-10-31 0:03 ` FNV-1 Adam Beneschan
2013-10-31 0:03 ` FNV-1 Adam Beneschan
2013-10-31 19:46 ` FNV-1 sbelmont700
2013-10-31 20:35 ` FNV-1 Adam Beneschan
2013-10-31 22:00 ` FNV-1 Jeffrey Carter
2013-11-01 13:40 ` Georg Bauhaus [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