Move Rabin fingerprinting code to folly.
authorTudor Bosman <tudorb@fb.com>
Tue, 12 Jun 2012 16:20:03 +0000 (09:20 -0700)
committerTudor Bosman <tudorb@fb.com>
Tue, 12 Jun 2012 23:23:08 +0000 (16:23 -0700)
commit987da6d2fb6598111f3e1ee3a0f40f35104e6fce
treed53c045a53a9b853cf73a2c26d76279c7223cd71
parente81459f687144b5d80a9e12cf024814f73169e2d
Move Rabin fingerprinting code to folly.

Summary:
Also generate fingerprint tables every time, so the code doesn't rot.

TODO(tudorb): move benchmark to folly
TODO(tudorb): Include the program used to generate the polynomials
(can't build as it requires NTL from http://www.shoup.net/ntl/)

Test Plan: folly/test

Reviewed By: andrei.alexandrescu@fb.com

FB internal diff: D492455
folly/Fingerprint.h [new file with mode: 0644]
folly/build/GenerateFingerprintTables.cpp [new file with mode: 0644]
folly/detail/FingerprintPolynomial.h [new file with mode: 0644]
folly/detail/SlowFingerprint.h [new file with mode: 0644]
folly/test/FingerprintTest.cpp [new file with mode: 0644]