Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove AlignedBuf and replace with alignas(n) std::array #3411

Open
wants to merge 1 commit into
base: community
Choose a base branch
from

Conversation

stellar-aria
Copy link
Collaborator

No description provided.

@stellar-aria stellar-aria requested a review from bfredl February 23, 2025 20:04
@stellar-aria stellar-aria self-assigned this Feb 23, 2025
@stellar-aria stellar-aria added small-pr refactor Refactoring (but not necessarily functional change) of codebase labels Feb 23, 2025
Copy link
Contributor

Test Results

108 tests  ±0   108 ✅ ±0   1s ⏱️ -1s
 16 suites ±0     0 💤 ±0 
 16 files   ±0     0 ❌ ±0 

Results for commit d94ca8e. ± Comparison against base commit c85128f.

@@ -59,5 +59,5 @@ class FmCore {
bool neon = false;

protected:
AlignedBuf<int32_t, DX_MAX_N> buf_[2];
alignas(16) std::array<int32_t, DX_MAX_N> buf_[2];
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this like cache line size /4?

Copy link
Collaborator Author

@stellar-aria stellar-aria Feb 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/2 actually, since AlignedBuf's default for the template argument for alignment was 16 and our cache line size is 32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactoring (but not necessarily functional change) of codebase small-pr
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants