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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce2598d1b5ccf8c8,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-18 00:04:12 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!fu-berlin.de!newsfeed.gazeta.pl!news.atman.pl!not-for-mail From: =?iso-8859-2?Q?Bart=B3omiej_=A6=2E?= Newsgroups: comp.lang.ada Subject: crc and Ada Date: Sun, 18 May 2003 07:04:11 +0000 (UTC) Organization: ATMAN Message-ID: NNTP-Posting-Host: staticline881.toya.net.pl X-Trace: news.atman.pl 1053241451 88054 217.113.229.52 (18 May 2003 07:04:11 GMT) X-Complaints-To: usenet@atman.pl NNTP-Posting-Date: Sun, 18 May 2003 07:04:11 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:37463 Date: 2003-05-18T07:04:11+00:00 List-Id: Hello, I'm starting in Ada, and I can't use same operators (like xor, and) in my programs. I need to count crc. In Java I was writting: #v+ ... crc=(crctable[((crc>>8)^bufor[start+i++]) & 0xFF]^(crc<<8))&0xFFFF; ... #v- What I should use instand of 'xor' and 'and' oparator (becouse in Ada they are logical oparator, not binary). For example, I replace crc<<8 by crc*256, and crc>>8 crc/256, but what about xor? -- Best regards, PGP: http://wilk.wpk.p.lodz.pl/swierczu/pgp Bartek. http://sknauk.wpk.p.lodz.pl