🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.os.linux.programacion
Article #10597

Re: Inversion de bits

#10597
From: Reinoso G.
Date: Fri, 15 Feb 2002 22:13
23 lines
2408 bytes
Je je je... Mirad lo que me ha salido hoy al iniciar la sesi�n:

You have old mail in /var/spool/mail/reinoso.
Last login: Fri Feb 15 21:13:03 from console
Have a lot of fun...

   n = ((n >>  1) & 0x55555555) | ((n <<  1) & 0xaaaaaaaa);
   n = ((n >>  2) & 0x33333333) | ((n <<  2) & 0xcccccccc);
   n = ((n >>  4) & 0x0f0f0f0f) | ((n <<  4) & 0xf0f0f0f0);
   n = ((n >>  8) & 0x00ff00ff) | ((n <<  8) & 0xff00ff00);
   n = ((n >> 16) & 0x0000ffff) | ((n << 16) & 0xffff0000);

                -- C code which reverses the bits in a word.

Estas fortunes tienen su gracia. :-DDD

Saludos.

-- 
�������������������������������������������������������������������������
��  Reinoso G.  EA4BAO / MiKatp             r einoso.bao@wanadoo.e s   ��
��  http://perso.wanadoo.es/reinoso.bao                                ��
������������������������������������������������������������������������� 
Technical Details
Message-ID: <slrna6r20h.7s.reinoso@EA4BAO.PLLANO.ESP.EU>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!EA4BAO.PLLANO.ESP.EU!nobody
References: <3C61171A.5F9E4911@eq.upc.es> <3c61c2a4$1_4@news.arrakis.es> <3c61d85d_4@news.arrakis.es> <a3u1uu$912$1@news.unizar.es> <3C61D67C.36C39080@hobbiton.org>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f86c8,bd33173853cfd14f
X-Google-Attributes: gidf86c8,public
X-Google-ArrivalTime: 2002-02-16 01:11:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!193.251.151.101!opentransit.net!newsfeed.comtenidos.com!newsfeeder.wanadoo.es!EA4BAO.PLLANO.ESP.EU!nobody
From: reinoso@probando.com (Reinoso G.)
Newsgroups: es.comp.os.linux.programacion
Subject: Re: Inversion de bits
Date: Fri, 15 Feb 2002 23:13:37 +0100
Organization: Puertollano CITY
Lines: 23
Message-ID: <slrna6r20h.7s.reinoso@EA4BAO.PLLANO.ESP.EU>
References: <3C61171A.5F9E4911@eq.upc.es> <3c61c2a4$1_4@news.arrakis.es> <3c61d85d_4@news.arrakis.es> <a3u1uu$912$1@news.unizar.es> <3C61D67C.36C39080@hobbiton.org>
Reply-To: rei noso.bao@wanadoo.e s
NNTP-Posting-Host: 62-36-147-156.dialup.uni2.es
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.wanadoo.es 1013850556 9478 62.36.147.156 (16 Feb 2002 09:09:16 GMT)
X-Complaints-To: usenet@wanadoo.es
NNTP-Posting-Date: Sat, 16 Feb 2002 09:09:16 +0000 (UTC)
User-Agent: slrn/0.9.7.1 (Linux)