🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #2699

Re: TopSpeed and assembler

#2699
From: Geir Atle Storhaug
Date: Fri, 11 Aug 1995 07:00
35 lines
2473 bytes
>>>>> "Peter" == Peter Moylan <peter@fourier.newcastle.edu.au> writes:
In article <40bjb1$qgs@seagoon.newcastle.edu.au> peter@fourier.newcastle.edu.au (Peter Moylan) writes:

Peter> That's an interesting example, because it comes up in
Peter> connection with implementing things like the Fast Fourier
Peter> Transform.  The way it arises - I imagine that Marco already
Peter> knows this, but some other readers might not - is that at
Peter> certain points in the calculation you have to rearrange an
Peter> array such that, for all j, A[j] has to be swapped with
Peter> A[BitReverse(j)], where BitReverse(.)  is the transformation
Peter> Marco mentions above.

I would guess that BitReversal of bytes is fastest using a 256 byte
array containing the reversed bit-patterns.  BitReversals of sets
smaller than 8 bit can be done by combining the above array with * or
DIV operations.  BitReversal of larger sets can be done by combining
the above operations.

Peter> On a completely different topic: in another posting, Marco
Peter> commented on the expression "not being able to see the wood for
Peter> the trees".  Yes, this is a well-known expression in the
Peter> English language; I didn't pick it up from Dutch.  (Ik kan geen
Peter> nederlands spreken.)  If it also occurs in Dutch, then I guess
Peter> it must be a very old expression that existed in the common
Peter> ancestor of the two languages.  Can anyone tell me whether the
Peter> expression also exists in German - or, for that matter, in any
Peter> other language?

The expression exists in Norwegian (ikke se skogen for bare trær).

-- 
 ____     ___   RFC  : Geir-Atle.Storhaug@ffi.no
/ ____/\ (__    X400 : G=Geir-Atle;S=Storhaug;O=ffi;P=uninett;C=no;
\___//  \___)   Office: +47-63-807608  Home: +47-63-838987  Fax:+47-63-807509
Forsvarets forskningsinstitutt, FFI/VM, Postboks 25, N-2007 Kjeller, NORWAY
Technical Details
Message-ID: <wsuenys6i2g.fsf@globus.ffi.no>
Path: arc1-ca.pugleaf.net!helios.ffi.no!usenet
References: <807534257.AA00868@puddle.fidonet.org> <40bjb1$qgs@seagoon.newcastle.edu.au>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!helios.ffi.no!usenet
From: Geir Atle Storhaug <Geir-Atle.Storhaug@ffi.no>
Newsgroups: comp.lang.modula2
Subject: Re: TopSpeed and assembler
Date: 11 Aug 1995 09:00:23 +0200
Organization: Forsvarets forskningsinstitutt, Kjeller, Norge.
Sender: gas@globus.ffi.no
Message-ID: <wsuenys6i2g.fsf@globus.ffi.no>
References: <807534257.AA00868@puddle.fidonet.org>
 <40bjb1$qgs@seagoon.newcastle.edu.au>
NNTP-Posting-Host: globus.ffi.no
In-reply-to: peter@fourier.newcastle.edu.au's message of 10 Aug 1995 00:19:45 GMT
X-Newsreader: (ding) Gnus v0.99.9