From: Loic Dachary Date: Mon, 13 Oct 2014 12:46:22 +0000 (+0200) Subject: erasure-code: expose ErasureCode::SIMD_ALIGN as a const X-Git-Tag: v0.87~11^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0749a2919f5e8350f34ab2d31eaea5d2e377a4cd;p=ceph.git 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 --- diff --git a/src/erasure-code/ErasureCode.cc b/src/erasure-code/ErasureCode.cc index 7087f51df86f..96a6b39c7d38 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 11c3491e5144..b135ade99d4d 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() {}