Commit 613f048b authored by Orvid King's avatar Orvid King Committed by Facebook Github Bot

Try to fix Fingerprint on Apple Clang 9.0

Summary: As per https://github.com/facebook/folly/issues/961, it appears that Apple Clang takes issue with modifying const values in the constructor within a constexpr context.

Reviewed By: yfeldblum

Differential Revision: D13005049

fbshipit-source-id: b0c9efcb6c5c4667028a7e0948e2fac53afdb1d2
parent 97af747e
...@@ -83,7 +83,7 @@ constexpr auto copy_table(D const (&table)[S0][S1][S2]) { ...@@ -83,7 +83,7 @@ constexpr auto copy_table(D const (&table)[S0][S1][S2]) {
template <size_t Deg> template <size_t Deg>
constexpr poly_table<Deg> make_poly_table() { constexpr poly_table<Deg> make_poly_table() {
FingerprintPolynomial<Deg> const poly(FingerprintTablePoly<Deg>::data); FingerprintPolynomial<Deg> poly(FingerprintTablePoly<Deg>::data);
uint64_t table[8][256][poly_size(Deg)] = {}; uint64_t table[8][256][poly_size(Deg)] = {};
// table[i][q] is Q(X) * X^(k+8*i) mod P(X), // table[i][q] is Q(X) * X^(k+8*i) mod P(X),
// where k is the number of bits in the fingerprint (and deg(P)) and // where k is the number of bits in the fingerprint (and deg(P)) and
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment