socrates_gui/static/js/spice-html5.js
/* Make the table for a fast CRC. */
Make the table for a fast CRC.
Make the table for a fast CRC .
function rfc2083_make_crc_table()
{
    var c;
    var n, k;
    for (n = 0; n < 256; n++)
    {
        c = n;
        for (k = 0; k < 8; k++)
        {
            if (c & 1)
                c = ((0xedb88320 ^ (c >>> 1)) >>> 0) & 0xffffffff;
            else
                c = c >>> 1;
        }
        rfc2083_crc_table[n] = c;
    }
    rfc2083_crc_table_computed = 1;
}
function rfc2083_make_crc_table ( ) { var c ; var n , k ; for ( n = 0 ; n < 256 ; n ++ ) { c = n ; for ( k = 0 ; k < 8 ; k ++ ) { if ( c & 1 ) c = ( ( 0xedb88320 ^ ( c >>> 1 ) ) >>> 0 ) & 0xffffffff ; else c = c >>> 1 ; } rfc2083_crc_table [ n ] = c ; } rfc2083_crc_table_computed = 1 ; }
Make the table for a fast CRC.
Make the table for a fast CRC .