<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>// Výpočet parity</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>static u08 Parita( u08 Vstup ) {</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> Vstup = (Vstup >> 4) ^
Vstup;<BR> Vstup = (Vstup >> 2) ^ Vstup;<BR> Vstup = (Vstup
>> 1) ^ Vstup;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> return Vstup & 1;<BR>}<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Michal</DIV></FONT>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=zdej@atlas.cz href="mailto:zdej@atlas.cz">Zdenek</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=hw-list@list.hw.cz
href="mailto:hw-list@list.hw.cz">HW-news</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, June 25, 2008 9:16
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: jak udelat v C</DIV>
<DIV><BR></DIV>Nejak nerozumim. Co dela: (ct &
0)?<BR><BR>Zdenek<BR><BR>Jaroslav Buchta napsal(a):<BR>> Unsigned char c,
ct;<BR>> ...<BR>> c = c & 0x3f;<BR>> ct = c ^
(c>>4);<BR>> ct = ct ^ (ct>>2);<BR>> ct = ct ^
(ct>>1);<BR>> if ((ct & 0)==0) c |= 0x40;<BR>> <BR>> Asi to
jde efektivneji, ja to delal nejak takto u 51, prekladac pouzil<BR>> pro
prvni operaci celkem vtipne instrukci SWAP<BR>>
<BR>_______________________________________________<BR>HW-list mailing
list - sponsored by <A href="http://www.HW.cz">www.HW.cz</A><BR><A
href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</A><BR><A
href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</A><BR></BLOCKQUOTE></BODY></HTML>