From 0749a2919f5e8350f34ab2d31eaea5d2e377a4cd Mon Sep 17 00:00:00 2001 From: Loic Dachary Date: Mon, 13 Oct 2014 14:46:22 +0200 Subject: [PATCH] erasure-code: expose ErasureCode::SIMD_ALIGN as a const 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 --- src/erasure-code/ErasureCode.cc | 2 +- src/erasure-code/ErasureCode.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/erasure-code/ErasureCode.cc b/src/erasure-code/ErasureCode.cc index 7087f51df86fa..96a6b39c7d383 100644 --- a/src/erasure-code/ErasureCode.cc +++ b/src/erasure-code/ErasureCode.cc @@ -22,7 +22,7 @@ #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 { diff --git a/src/erasure-code/ErasureCode.h b/src/erasure-code/ErasureCode.h index 11c3491e5144a..b135ade99d4d2 100644 --- a/src/erasure-code/ErasureCode.h +++ b/src/erasure-code/ErasureCode.h @@ -30,6 +30,8 @@ namespace ceph { class ErasureCode : public ErasureCodeInterface { public: + static const unsigned SIMD_ALIGN; + vector chunk_mapping; virtual ~ErasureCode() {} -- 2.39.5