ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Review Request: CRC
by Joel Young other posts by this author
Feb 22 2001 4:20PM messages near this date
Re: [boost] Polymorphic Iterators | Unsubscirbe
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@[...]..> 
Date: Wed, 21 Feb 2001 13:29:43 -0500
To: Boost <boost@[...].com> 
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/
Thread:
Joel Young
GAZ

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved