comp.lang.ada
 help / color / mirror / Atom feed
From: eachus@spectre.mitre.org (Robert I. Eachus)
Subject: Re: An interesting quote on Java and C++
Date: 1997/10/03
Date: 1997-10-03T00:00:00+00:00	[thread overview]
Message-ID: <EACHUS.97Oct3181234@spectre.mitre.org> (raw)
In-Reply-To: dewar.874759066@merv


In article <dewar.874759066@merv> dewar@merv.cs.nyu.edu (Robert Dewar) writes:

 > Of course if you find the non-binary modular stuff useful (I wonder how
 > much it is used outside ACVC tests), then no doubt you regard this as a
 > lucky mistake :-)

   One of the few places where it is useful is in random number
generation, so I was one of the few who felt a need for it.  However,
there is a related "trick" that occaisionally is useful.  Most
hardware architectures support a word * word --> doubleword multiply,
and a corresponding doubleword / word --> word instruction.  Of
course, these are not normally accesable from high-level languages
without implementation dependent techniques. To pick a specific
example, on the SPARC architecture, these instructions can follow one
after the other, but accessing the register holding the high order
bits is otherwise relatively slow.  So,

   type Modular is mod M; --for some non-static binary M.
   X, Y, Z: Modular;
   ...
   X := Y * Z;
   -- can be done in very few clock cycles.

   This is of course most interesting in any application where you are
interested in doing an integer FFT.  Comes up a lot in signal processing.

--

					Robert I. Eachus

with Standard_Disclaimer;
use  Standard_Disclaimer;
function Message (Text: in Clever_Ideas) return Better_Ideas is...




  reply	other threads:[~1997-10-03  0:00 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-03  0:00 An interesting quote on Java and C++ Nasser
     [not found] ` <01bcb881$915526a0$d7000064@sim01.amst.co.at>
1997-09-03  0:00   ` Robert Munck
1997-09-05  0:00     ` Joachim Schroeer
1997-09-06  0:00     ` Robert Dewar
1997-09-24  0:00     ` Shmuel (Seymour J.) Metz
1997-09-08  0:00   ` Robert A Duff
1997-09-09  0:00     ` Robert Munck
1997-09-10  0:00       ` Robert A Duff
1997-09-10  0:00         ` Robert Munck
1997-09-11  0:00           ` Robert Dewar
1997-09-12  0:00             ` Robert A Duff
1997-09-18  0:00               ` Shmuel (Seymour J.) Metz
1997-09-19  0:00                 ` Robert A Duff
1997-09-20  0:00                   ` Robert Dewar
1997-09-20  0:00                 ` Robert Dewar
1997-10-03  0:00                   ` Robert I. Eachus [this message]
1997-09-20  0:00                 ` Robert Dewar
1997-09-22  0:00                   ` Robert A Duff
1997-09-12  0:00             ` Jon S Anthony
1997-09-10  0:00         ` Stephen Leake
1997-09-11  0:00           ` Roy Grimm
1997-09-12  0:00             ` Robert A Duff
1997-09-12  0:00         ` Jon S Anthony
1997-09-11  0:00       ` Robert Dewar
1997-09-12  0:00         ` Jon S Anthony
1997-09-12  0:00           ` Robert A Duff
1997-09-03  0:00 ` Samuel Mize
  -- strict thread matches above, loose matches on Subject: below --
1997-09-25  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1997-09-25  0:00 ` Shmuel (Seymour J.) Metz
1997-09-26  0:00   ` Tucker Taft
1997-10-07  0:00   ` Robert I. Eachus
1997-11-19  0:00     ` Shmuel (Seymour J.) Metz
1997-10-08  0:00 Marin David Condic, 561.796.8997, M/S 731-96
1997-10-09  0:00 ` Shmuel (Seymour J.) Metz
replies disabled

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