Ignore:
Timestamp:
Feb 11, 2010, 11:19:06 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.1 sources.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/config.tests/mac/crc/main.cpp

    r2 r561  
     1
     2
     3
     4
     5
     6
     7
     8
     9
     10
     11
     12
     13
     14
     15
     16
     17
     18
     19
     20
     21
     22
     23
     24
     25
     26
     27
     28
     29
     30
     31
     32
     33
     34
     35
     36
     37
     38
     39
     40
     41
    142#include <iostream>
    243#include <cstdlib>
     
    3172            ulTable[iCodes] = Reflect(iCodes, 8) << 24;
    3273            for(int iPos = 0; iPos < 8; iPos++) {
    33                 ulTable[iCodes] = (ulTable[iCodes] << 1)
     74                ulTable[iCodes] = ()
    3475                    ^ ((ulTable[iCodes] & (1 << 31)) ? ulPolynomial : 0);
    3576            }
     
    4485        for(int iPos = 1; iPos < (cChar + 1); iPos++) {
    4586            if(ulReflect & 1) {
    46                 ulValue |= (1 << (cChar - iPos));
     87                ulValue |= (1 << (cChar - iPos));
    4788            }
    4889            ulReflect >>= 1;
Note: See TracChangeset for help on using the changeset viewer.