From: Dirk Herrmann <fight_spam@invalid.invalid>
Subject: Re: conversions between fixed-point types
Date: Mon, 28 Sep 2009 22:18:50 +0200
Date: 2009-09-28T22:18:50+02:00 [thread overview]
Message-ID: <h9r5nb$1st$1@news.albasani.net> (raw)
In-Reply-To: <fff32aac-526a-4037-b40f-a4811ca730d0@e18g2000vbe.googlegroups.com>
sjw wrote:
> Is the target hardware standard?
Yes, it's an ARM core.
> T_Delta : constant := 0.4;
> type T is delta T_Delta range -10.0 .. 10.0;
> for T'Small use T_Delta;
:-)
However, what I don't like about this solution is, that you have to make
T_Delta publically visible. My point is not about anybody not knowing about
T'Small - it's just that you can not control the use of the symbol T_Delta.
Maybe later you want to rename it, or share the same constant between T1 and T2.
--
Dirk
next prev parent reply other threads:[~2009-09-28 20:18 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-18 21:35 conversions between fixed-point types Dirk Herrmann
2009-09-18 22:42 ` Adam Beneschan
2009-09-19 12:41 ` Dirk Herrmann
2009-09-19 14:48 ` John B. Matthews
2009-09-20 8:15 ` Dirk Herrmann
2009-09-20 14:22 ` Robert A Duff
2009-09-20 18:55 ` Dirk Herrmann
2009-09-20 20:34 ` Simon Clubley
2009-09-23 20:46 ` Dirk Herrmann
2009-09-27 17:15 ` Simon Clubley
2009-09-27 19:22 ` sjw
2009-09-28 20:18 ` Dirk Herrmann [this message]
2009-09-28 18:37 ` Robert A Duff
2009-09-28 20:50 ` Dirk Herrmann
2009-09-20 15:18 ` John B. Matthews
2009-09-20 19:13 ` Dirk Herrmann
2009-09-20 20:09 ` tmoran
2009-09-21 17:24 ` Jeffrey R. Carter
2009-09-23 20:57 ` Dirk Herrmann
2009-09-23 22:28 ` Jeffrey R. Carter
2009-09-24 1:05 ` Adam Beneschan
2009-09-24 3:57 ` Jeffrey R. Carter
2009-09-25 8:47 ` Stuart
2009-09-25 20:41 ` sjw
2009-09-25 21:58 ` Jeffrey R. Carter
2009-09-28 13:40 ` Stuart
2009-09-26 14:43 ` Dirk Herrmann
2009-09-28 15:15 ` Adam Beneschan
2009-09-26 14:31 ` Dirk Herrmann
2009-09-19 18:38 ` tmoran
2009-09-20 8:22 ` sjw
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox