packages feed

hash 0.1 → 0.1.1

raw patch · 4 files changed

+73/−2 lines, 4 files

Files

.travis.yml view
@@ -20,7 +20,7 @@       - "irc.freenode.org#haskell-lens"     skip_join: true     template:-      - "\x0313hashable-extras\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"+      - "\x0313hash\x03/\x0306%{branch}\x03 \x0314%{commit}\x03 %{build_url} %{message}"  env:   - mode="--enable-tests" script="cabal test --show-details=always"
+ cbits/crc32.c view
@@ -0,0 +1,34 @@+unsigned int crc32_lut[] = {+  0x00000000, 0x04c11db7, 0x09823b6e, 0x0d4326d9, 0x130476dc, 0x17c56b6b, 0x1a864db2, 0x1e475005,+  0x2608edb8, 0x22c9f00f, 0x2f8ad6d6, 0x2b4bcb61, 0x350c9b64, 0x31cd86d3, 0x3c8ea00a, 0x384fbdbd,+  0x4c11db70, 0x48d0c6c7, 0x4593e01e, 0x4152fda9, 0x5f15adac, 0x5bd4b01b, 0x569796c2, 0x52568b75,+  0x6a1936c8, 0x6ed82b7f, 0x639b0da6, 0x675a1011, 0x791d4014, 0x7ddc5da3, 0x709f7b7a, 0x745e66cd,+  0x9823b6e0, 0x9ce2ab57, 0x91a18d8e, 0x95609039, 0x8b27c03c, 0x8fe6dd8b, 0x82a5fb52, 0x8664e6e5,+  0xbe2b5b58, 0xbaea46ef, 0xb7a96036, 0xb3687d81, 0xad2f2d84, 0xa9ee3033, 0xa4ad16ea, 0xa06c0b5d,+  0xd4326d90, 0xd0f37027, 0xddb056fe, 0xd9714b49, 0xc7361b4c, 0xc3f706fb, 0xceb42022, 0xca753d95,+  0xf23a8028, 0xf6fb9d9f, 0xfbb8bb46, 0xff79a6f1, 0xe13ef6f4, 0xe5ffeb43, 0xe8bccd9a, 0xec7dd02d,+  0x34867077, 0x30476dc0, 0x3d044b19, 0x39c556ae, 0x278206ab, 0x23431b1c, 0x2e003dc5, 0x2ac12072,+  0x128e9dcf, 0x164f8078, 0x1b0ca6a1, 0x1fcdbb16, 0x018aeb13, 0x054bf6a4, 0x0808d07d, 0x0cc9cdca,+  0x7897ab07, 0x7c56b6b0, 0x71159069, 0x75d48dde, 0x6b93dddb, 0x6f52c06c, 0x6211e6b5, 0x66d0fb02,+  0x5e9f46bf, 0x5a5e5b08, 0x571d7dd1, 0x53dc6066, 0x4d9b3063, 0x495a2dd4, 0x44190b0d, 0x40d816ba,+  0xaca5c697, 0xa864db20, 0xa527fdf9, 0xa1e6e04e, 0xbfa1b04b, 0xbb60adfc, 0xb6238b25, 0xb2e29692,+  0x8aad2b2f, 0x8e6c3698, 0x832f1041, 0x87ee0df6, 0x99a95df3, 0x9d684044, 0x902b669d, 0x94ea7b2a,+  0xe0b41de7, 0xe4750050, 0xe9362689, 0xedf73b3e, 0xf3b06b3b, 0xf771768c, 0xfa325055, 0xfef34de2,+  0xc6bcf05f, 0xc27dede8, 0xcf3ecb31, 0xcbffd686, 0xd5b88683, 0xd1799b34, 0xdc3abded, 0xd8fba05a,+  0x690ce0ee, 0x6dcdfd59, 0x608edb80, 0x644fc637, 0x7a089632, 0x7ec98b85, 0x738aad5c, 0x774bb0eb,+  0x4f040d56, 0x4bc510e1, 0x46863638, 0x42472b8f, 0x5c007b8a, 0x58c1663d, 0x558240e4, 0x51435d53,+  0x251d3b9e, 0x21dc2629, 0x2c9f00f0, 0x285e1d47, 0x36194d42, 0x32d850f5, 0x3f9b762c, 0x3b5a6b9b,+  0x0315d626, 0x07d4cb91, 0x0a97ed48, 0x0e56f0ff, 0x1011a0fa, 0x14d0bd4d, 0x19939b94, 0x1d528623,+  0xf12f560e, 0xf5ee4bb9, 0xf8ad6d60, 0xfc6c70d7, 0xe22b20d2, 0xe6ea3d65, 0xeba91bbc, 0xef68060b,+  0xd727bbb6, 0xd3e6a601, 0xdea580d8, 0xda649d6f, 0xc423cd6a, 0xc0e2d0dd, 0xcda1f604, 0xc960ebb3,+  0xbd3e8d7e, 0xb9ff90c9, 0xb4bcb610, 0xb07daba7, 0xae3afba2, 0xaafbe615, 0xa7b8c0cc, 0xa379dd7b,+  0x9b3660c6, 0x9ff77d71, 0x92b45ba8, 0x9675461f, 0x8832161a, 0x8cf30bad, 0x81b02d74, 0x857130c3,+  0x5d8a9099, 0x594b8d2e, 0x5408abf7, 0x50c9b640, 0x4e8ee645, 0x4a4ffbf2, 0x470cdd2b, 0x43cdc09c,+  0x7b827d21, 0x7f436096, 0x7200464f, 0x76c15bf8, 0x68860bfd, 0x6c47164a, 0x61043093, 0x65c52d24,+  0x119b4be9, 0x155a565e, 0x18197087, 0x1cd86d30, 0x029f3d35, 0x065e2082, 0x0b1d065b, 0x0fdc1bec,+  0x3793a651, 0x3352bbe6, 0x3e119d3f, 0x3ad08088, 0x2497d08d, 0x2056cd3a, 0x2d15ebe3, 0x29d4f654,+  0xc5a92679, 0xc1683bce, 0xcc2b1d17, 0xc8ea00a0, 0xd6ad50a5, 0xd26c4d12, 0xdf2f6bcb, 0xdbee767c,+  0xe3a1cbc1, 0xe760d676, 0xea23f0af, 0xeee2ed18, 0xf0a5bd1d, 0xf464a0aa, 0xf9278673, 0xfde69bc4,+  0x89b8fd09, 0x8d79e0be, 0x803ac667, 0x84fbdbd0, 0x9abc8bd5, 0x9e7d9662, 0x933eb0bb, 0x97ffad0c,+  0xafb010b1, 0xab710d06, 0xa6322bdf, 0xa2f33668, 0xbcb4666d, 0xb8757bda, 0xb5365d03, 0xb1f740b4+};
+ cbits/rolling.c view
@@ -0,0 +1,35 @@+// 256 random numbers+unsigned int rolling_lut[] = {+  0x905adba2,0x081537f8,0x1b491b17,0xbd24d113,0x30e62a36,0x401b9ef0,0xd1a58159,0xeda760c6,+  0xd6fdc29f,0xaf4743bc,0x1057f8d6,0x9b217bed,0x2e75fd71,0x21bdd2ac,0x756f7aa8,0xc8793be7,+  0xdd0ff41c,0xd2e16021,0xa630c457,0xacc9e31a,0xd9c0608b,0x14593e51,0xf5031cee,0xbcd50f19,+  0x30e27005,0xc362af08,0x167beb6e,0xdea9a607,0x1e97d438,0x87053628,0xd5f59b95,0xa2f2035d,+  0xaac31641,0xaf4dd395,0x9462fed9,0x5050728f,0xe65051c3,0x5d232385,0xc9f828c5,0xee3f378f,+  0x53e20bca,0xa3a74959,0x1b5f69ed,0xe76db287,0xef91d84b,0x3b6b560d,0xe20158dc,0xb2528753,+  0xdcdf3c71,0x22f5fc2a,0x0329ad84,0x10feaa0c,0x00da9642,0xd392ff08,0xbdb552fe,0x15f230e9,+  0xe533f706,0x0ad6a0fe,0x4c8ca66d,0x88e8e85c,0x6e96c66e,0xda55a5da,0x2a420851,0x4d4978dc,+  0x31d4f46a,0x7cd3e9d5,0x211f39d8,0xe4a94f03,0xd5026486,0xecb22973,0xa0d390ac,0x3d1a90c8,+  0xec6b94cc,0xd3e763ee,0x7a0c9e74,0x4d40d8c5,0x3926e030,0xcb92fe65,0x7cff0090,0x3d3de0ae,+  0x76273729,0x674290f2,0x548b3295,0x8cf75285,0x88c74c74,0x923a4e64,0x869aa693,0x39679261,+  0xe2ab4909,0x3e3f9214,0xe347a554,0xd50a1a38,0x0d592dc4,0x0f1ed866,0x506fad5e,0x2e26f5db,+  0x661c033c,0x5519b21f,0xccadc2ff,0x863c70d8,0xba54221f,0x0e06a128,0x19ae44b8,0x3a2150b2,+  0x88caa622,0x9be70470,0x39c58722,0x478e9a27,0x2dd2ea48,0xbaf7be64,0xe447b5cb,0x2c477877,+  0xcb77a7a8,0x9ffd093a,0xe9309cad,0xe06cb4d6,0x2793c76a,0x87c2b51d,0xf5c7519f,0xc2542bb6,+  0xccd218b8,0xfe61053d,0x812e6e9c,0xdc756107,0x29ec324b,0x937a034c,0xeac03578,0x38d32e69,+  0x6ca08889,0x293fe173,0x5b64a47b,0x49e08823,0xb0ba353f,0xc850f100,0xe26d72ec,0x3f8b76c8,+  0x3424a6fa,0x29a89a33,0xb2295071,0x9aee3fda,0x4a34da2a,0x1ecacc9a,0x98f2bd48,0x4490400b,+  0x34064db0,0x1815a310,0x681346d9,0x23ab1673,0xb2528a9f,0x4fe65199,0xd2792f95,0x962591b4,+  0xc71125a1,0xfbb9d565,0x7f101af3,0xb7c75566,0x4b8d8b44,0x72a6c1eb,0x06f133c9,0xcfac1451,+  0xe6f03019,0x1ddb9f48,0xa44430dd,0x622f473d,0xddc3cb86,0xcbb7cb89,0x15be7f35,0xc354f36c,+  0xa5746940,0x5531a89d,0x6d0c3109,0x10457a60,0xa9fe2318,0xc45cce23,0xfebf3b5a,0xb0076817,+  0x1281a947,0xa48162f0,0x7dfaa847,0x61b560da,0xda23db3a,0xb0a83d87,0xef8e4451,0x5e55a57e,+  0x1f360b43,0x2eedd1b8,0x414ef43d,0x72b31713,0xfe3fbbc8,0x721d23a1,0xec35369e,0xbc94875e,+  0x3885801b,0x3435f3fd,0x4e821274,0x505bda50,0x7bf8482f,0x757b4147,0x11b7409a,0x19d9cbb3,+  0xec3c2082,0x899a15ef,0x6a4956f6,0x2dfd8857,0x50108704,0x944256dd,0xdbe26397,0x06b1eb79,+  0xda2df0c8,0x2a9cba94,0x3139403f,0x71f30ecd,0xeec52999,0xbc0968a6,0xc0b6d8e6,0x632836bd,+  0xf82f525b,0xd568f91c,0x6cb4237c,0x5276b059,0xd0e3b92d,0xba5a97ba,0x02c37fd7,0x6b420158,+  0x1ec7085e,0xf54e167f,0xcd1af6d7,0x47e600e5,0x72cde80f,0x69613ccb,0xa0db3401,0x508b8e03,+  0x9e817761,0xc35f19c9,0xdd68c410,0xe73f2898,0x6284638f,0xe0ae88f6,0xd33b74ed,0xc9c1af20,+  0xab7d8055,0xef463254,0xa26818e3,0x040152d3,0xe59e051b,0x20439b33,0xea2400bf,0x742c4672,+  0x6c0178fc,0x368b82a3,0x334ca4cc,0x5b88d36e,0x4b489f41,0xf8a21bbe,0xa75e2612,0xc3113e7f+};
hash.cabal view
@@ -1,6 +1,6 @@ name:          hash category:      Data, Hash-version:       0.1+version:       0.1.1 license:       BSD3 cabal-version: >= 1.8 license-file:  LICENSE@@ -56,6 +56,8 @@     Data.Hash.CRC32     Data.Hash.Double     Data.Hash.Rolling++  c-sources: cbits/crc32.c cbits/rolling.c    if flag(lib-Werror)     ghc-options: -Werror