Boost logo

Boost :

From: Joel Young (jdy_at_[hidden])
Date: 2001-02-22 11:20:24


Daryle,

Question on the usage of the crc:

I run the following code:

{
  boost::crc_slow<1> crc_1(1,0,0,false,false);

  std::bitset<7> t = 108; //("1101100");
  std::cerr << t << std::endl;
  for (int i=t.size()-1; i>=0; --i)
    crc_1( t.test(i) );
  std::bitset<7> s = *crc_1; //("1101100");
  t |= *crc_1;
  std::cerr << t << std::endl;
  std::cerr << s << std::endl;
}

And get this result:

1101100
1111100
0010000

Indicating that the remainder returned by crc_1 is way to big.

Shouldn't the remainder be only one bit? Or am I misunderstanding the
process?

Joel
--------
From: Daryle Walker <darylew_at_[hidden]>
Date: Wed, 21 Feb 2001 13:29:43 -0500
  To: Boost <boost_at_[hidden]>
Subj: [boost] Review Request: CRC

I asked around a week ago if there was any problems with my CRC classes
("crc.zip" in the vault). Since no one has said anything, I want to put the
CRC stuff under formal review.

Besides me researching and writing the classes, Jens Maurer gave me advice
on GCC compatibility problems. (I'm mentioning this because of the "an
active boost member not connected with the library submission must volunteer
to be the 'Review Manager' for the library" clause in the review process. I
don't know if this slight aid disqualifies Jens or not.)

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk