From: sjw <simon.j.wright@mac.com>
Subject: Re: About the F-22 software bug
Date: Sat, 6 Feb 2010 04:12:31 -0800 (PST)
Date: 2010-02-06T04:12:31-08:00 [thread overview]
Message-ID: <60554b4a-e36a-4daa-8c21-9600b30a40a9@m16g2000yqc.googlegroups.com> (raw)
In-Reply-To: 92a42999-0632-4bc6-8348-29140337c3c6@g29g2000yqe.googlegroups.com
On Feb 5, 11:39 pm, Phil Clayton <phil.clay...@lineone.net> wrote:
> Interesting to see that 'cyclic fixed point types' are under
> discussion:
>
> http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai05s/ai05-0175-1.txt?rev=1.2
>
> http://www.ada-auth.org/ai-files/minutes/min-0911.html#AI175
Interesting that those discussions are in terms of cyclic *fixed
point* types.
I agree that at the boundary you need to handle cyclic fixed point.
Back in the day, the Ferranti name for these was 'standard angle
format'; the F1600 series was a 24-bit machine, and the most
significant bit typically represented -180 degrees. Overflow was
represented by an optional check, so wrap-round was as easy as pie.
But why (on a machine with any sort of floating-point capability)
would you want to preserve this anywhere other than at the boundary?
On my present system, angles are stored in radians. Handling wrap-
round (and sometimes we need to deal with a range -2pi .. 2pi) was not
properly dignified with library support from the start, but we've
achieved a generic which lets you normalise an angle to -pi <= a < pi
or to 0 <= b < 2pi or to -2pi <= c < 2pi with minimal pain. We don't
need to worry about latitude!
next prev parent reply other threads:[~2010-02-06 12:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 18:46 About the F-22 software bug Pascal Obry
[not found] ` <4YKdnVFQX_suIPbWnZ2dnUVZ_rednZ2d@earthlink.com>
2010-02-05 6:51 ` Hibou57 (Yannick Duchêne)
2010-02-05 8:30 ` Martin
2010-02-05 8:52 ` Ludovic Brenta
2010-02-05 9:02 ` Martin
2010-02-05 10:31 ` Dmitry A. Kazakov
2010-02-05 11:18 ` Martin
2010-02-05 16:50 ` Hibou57 (Yannick Duchêne)
2010-02-05 18:19 ` Dmitry A. Kazakov
2010-02-06 9:28 ` Martin
2010-02-05 23:39 ` Phil Clayton
2010-02-06 12:12 ` sjw [this message]
2010-02-07 10:11 ` Martin
2010-02-06 15:30 ` jonathan
2010-02-06 16:35 ` Pascal Obry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox