]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
erasure-code: expose ErasureCode::SIMD_ALIGN as a const
authorLoic Dachary <loic-201408@dachary.org>
Mon, 13 Oct 2014 12:46:22 +0000 (14:46 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Tue, 21 Oct 2014 17:33:50 +0000 (10:33 -0700)
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>
src/erasure-code/ErasureCode.cc
src/erasure-code/ErasureCode.h

index 7087f51df86fa92a12b0de5c2fc92fec58d0a5b2..96a6b39c7d3830e699dd74061afc4d6536f57f22 100644 (file)
@@ -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
 {
index 11c3491e5144a8ad24868036a8d873df82af13e0..b135ade99d4d2f240c1999ea3d83fc2cd41b20a6 100644 (file)
@@ -30,6 +30,8 @@ namespace ceph {
 
   class ErasureCode : public ErasureCodeInterface {
   public:
+    static const unsigned SIMD_ALIGN;
+
     vector<int> chunk_mapping;
 
     virtual ~ErasureCode() {}