Skip to content

Commit 216eb26

Browse files
committed
erasure-code: Increase SIMD_ALIGN from 32 to 64
Fixes: https://tracker.ceph.com/issues/61573 Signed-off-by: Jamie Pryde <[email protected]>
1 parent 6edfcab commit 216eb26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/erasure-code/ErasureCode.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ using std::vector;
3939
using ceph::bufferlist;
4040

4141
namespace ceph {
42-
const unsigned ErasureCode::SIMD_ALIGN = 32;
42+
const unsigned ErasureCode::SIMD_ALIGN = 64;
4343

4444
int ErasureCode::init(
4545
ErasureCodeProfile &profile,

src/test/bufferlist.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ TEST(BufferList, contents_equal) {
16201620
}
16211621

16221622
TEST(BufferList, is_aligned) {
1623-
const int SIMD_ALIGN = 32;
1623+
const int SIMD_ALIGN = 64;
16241624
{
16251625
bufferlist bl;
16261626
EXPECT_TRUE(bl.is_aligned(SIMD_ALIGN));
@@ -1648,7 +1648,7 @@ TEST(BufferList, is_aligned) {
16481648
}
16491649

16501650
TEST(BufferList, is_n_align_sized) {
1651-
const int SIMD_ALIGN = 32;
1651+
const int SIMD_ALIGN = 64;
16521652
{
16531653
bufferlist bl;
16541654
EXPECT_TRUE(bl.is_n_align_sized(SIMD_ALIGN));
@@ -1792,7 +1792,7 @@ TEST(BufferList, page_aligned_appender) {
17921792
}
17931793

17941794
TEST(BufferList, rebuild_aligned_size_and_memory) {
1795-
const unsigned SIMD_ALIGN = 32;
1795+
const unsigned SIMD_ALIGN = 64;
17961796
const unsigned BUFFER_SIZE = 67;
17971797

17981798
bufferlist bl;

0 commit comments

Comments
 (0)