Skip to content

Instantly share code, notes, and snippets.

@mmis1000
mmis1000 / gist:6343892
Last active December 21, 2015 17:59 — forked from Yaffle/gist:1287361
var crc32;
(function(){
var crcTableTable = [];
function buildTable(polynomial) {
var table = [];
function reverse(x, n) {
var b = 0;
while (n) {
b = b * 2 + x % 2;
x /= 2;