For test purposes and it will also be useful for plugins that must
ensure the chunk size is a multiple of SIMD_ALIGN.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
#include "common/strtol.h"
#include "ErasureCode.h"
-static const unsigned SIMD_ALIGN = 32;
+const unsigned ErasureCode::SIMD_ALIGN = 32;
int ErasureCode::chunk_index(unsigned int i) const
{
class ErasureCode : public ErasureCodeInterface {
public:
+ static const unsigned SIMD_ALIGN;
+
vector<int> chunk_mapping;
virtual ~ErasureCode() {}