Skip to content

Commit a11c179

Browse files
Merge pull request ceph#60246 from jamiepryde/SIMD-align-64
erasure-code: Increase SIMD_ALIGN from 32 to 64
2 parents ac9d18c + 216eb26 commit a11c179

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
@@ -1622,7 +1622,7 @@ TEST(BufferList, contents_equal) {
16221622
}
16231623

16241624
TEST(BufferList, is_aligned) {
1625-
const int SIMD_ALIGN = 32;
1625+
const int SIMD_ALIGN = 64;
16261626
{
16271627
bufferlist bl;
16281628
EXPECT_TRUE(bl.is_aligned(SIMD_ALIGN));
@@ -1650,7 +1650,7 @@ TEST(BufferList, is_aligned) {
16501650
}
16511651

16521652
TEST(BufferList, is_n_align_sized) {
1653-
const int SIMD_ALIGN = 32;
1653+
const int SIMD_ALIGN = 64;
16541654
{
16551655
bufferlist bl;
16561656
EXPECT_TRUE(bl.is_n_align_sized(SIMD_ALIGN));
@@ -1794,7 +1794,7 @@ TEST(BufferList, page_aligned_appender) {
17941794
}
17951795

17961796
TEST(BufferList, rebuild_aligned_size_and_memory) {
1797-
const unsigned SIMD_ALIGN = 32;
1797+
const unsigned SIMD_ALIGN = 64;
17981798
const unsigned BUFFER_SIZE = 67;
17991799

18001800
bufferlist bl;

0 commit comments

Comments
 (0)