Skip to content

Nicer factoring of getauxval based cpu features#1301

Merged
JohanMabille merged 2 commits intoxtensor-stack:masterfrom
AntoinePrv:getauxval-backend
Apr 14, 2026
Merged

Nicer factoring of getauxval based cpu features#1301
JohanMabille merged 2 commits intoxtensor-stack:masterfrom
AntoinePrv:getauxval-backend

Conversation

@AntoinePrv
Copy link
Copy Markdown
Contributor

  • Add a getauxval backend
  • Split implementation

{
return static_cast<bool>(XSIMD_WITH_NEON64);
}
inline bool arm_cpu_features::neon64() const noexcept
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not keeping constexpr?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is just this one that would be constexpr. I made them homogeneous to clearly indicate that in general thsi API is for runtime information.

@JohanMabille JohanMabille merged commit 2293695 into xtensor-stack:master Apr 14, 2026
73 checks passed
@AntoinePrv AntoinePrv deleted the getauxval-backend branch April 14, 2026 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants