Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unsigned char dividend = ::dividend;
- int x;
- while( (polynom & 0xF0) != 0)
- {
- for(x = POLY_GRAD; x > 0; x--) {
- if ((polynom & (1 << (x+POLY_GRAD))))
- {
- break;
- }
- }
- dividend = ::dividend << x;
- cout << "Dividend = ";
- polyausgabe(dividend);
- polynom ^= dividend;
- cout << "Restpoly = ";
- polyausgabe(polynom);
- cout << endl << "------------------" << endl;
- }
- cout << "______________________________" << endl << endl;
- return polynom & 0x0F;
Add Comment
Please, Sign In to add comment