From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,9dec3ff1604723d9 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.freenet.de!news.tu-darmstadt.de!news.belwue.de!newsfeed.arcor.de!news.arcor.de!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Bitmanipulation in Ada From: Bernd.Specht@gmx.com (Bernd Specht) References: <87k6vwrwym.fsf@insalien.org> Organization: No company Message-ID: User-Agent: Xnews/4.05.03 Date: 20 Aug 2004 21:31:37 GMT NNTP-Posting-Date: 20 Aug 2004 23:31:37 MEST NNTP-Posting-Host: 57497977.newsread4.arcor-online.net X-Trace: DXC=MDfRYE03T?F]_BK@0oKR>D:ejgIfPPldDjW\KbG]kaMHlSE5DYV?adA:<31E>kg_aLWEh14DWb8DHENCeBoTQ_6DLNa;jR\VcEJ X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:2902 Date: 2004-08-20T23:31:37+02:00 List-Id: "Martin Dowie" wrote in news:cg32ja$qru$1@titan.btinternet.com: > Bernd Specht wrote: > Well, this isn't a complete solution (I've got a 4-year old to put to > bed right now...) but it could send you on an alternative course (if > the algorithm you posted is doing what I think it is! ;-) I think you're right. > The idea behind your loop (I think) is to swap bits from either end > from MSBit to LSBit with a prime number 'twist' in each step? Yes, but thats not exactly my task. I do some kind of data scrambling for transmission over public network. > You can > do this using the above as the basis for that solution - all in > 'Unsigned_32'. Yes, I think so. Thanks.