comp.lang.ada
 help / color / mirror / Atom feed
From: "Tarjei T. Jensen" <tarjei@online.no>
Subject: Re: crc and Ada
Date: Sun, 18 May 2003 10:05:01 +0200
Date: 2003-05-18T10:05:01+02:00	[thread overview]
Message-ID: <m9Hxa.13295$8g5.207407@news2.e.nsc.no> (raw)
In-Reply-To: slrnbcec3j.rh.swierczu@staticline881.toya.net.pl

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 526 bytes --]

"Bart�omiej �." wrote:
> 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?

Read section 4.5.1 of the Ada 95 Reference Manual.

and, or and xor is defined for every bolean and modular type. In addtion
also single dimentioned arrays of boolean.

Also have a look Appendix B.2.


greetings,,





  parent reply	other threads:[~2003-05-18  8:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-18  7:04 crc and Ada Bartłomiej Ś.
2003-05-18  7:27 ` John R. Strohm
2003-05-18  7:38 ` Martin Krischik
2003-05-18  7:49 ` Martin Dowie
2003-05-18  7:56 ` tmoran
2003-05-18  9:35   ` Bartłomiej Ś.
2003-05-18  8:05 ` Tarjei T. Jensen [this message]
2003-05-19  9:09 ` Ludovic Brenta
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox