build: Allow installation

This commit is contained in:
Matt Smith 2020-09-20 12:34:19 +01:00
parent ac1b4013cd
commit 55c3c547ed
No known key found for this signature in database
GPG key ID: 5162D20F840BDEF3
15 changed files with 28 additions and 13 deletions

View file

@ -1,17 +0,0 @@
/*
Copyright (c) 2020 tevador <tevador@gmail.com>
All rights reserved.
*/
#pragma once
#include "gf_poly.hpp"
class reed_solomon_code {
public:
reed_solomon_code(unsigned check_digits);
void encode(gf_poly& data) const;
bool check(const gf_poly& message) const;
private:
gf_poly get_syndrome(const gf_poly& message) const;
gf_poly generator;
};