@@ -24525,19 +24525,18 @@
24525
24525
that has no over-alignment requirement.
24526
24526
\begin{codeblock}
24527
24527
void compute_using_fourfold_overalignment(
24528
- std::mdspan<float, std::dims<1>, std::layout_right,
24529
- std::aligned_accessor<float, 4 * alignof(float)>> x);
24528
+ mdspan<float, dims<1>, layout_right, aligned_accessor<float, 4 * alignof(float)>> x);
24530
24529
24531
24530
void compute_without_requiring_overalignment(
24532
- std:: mdspan<float, std:: dims<1>, std:: layout_right> x);
24531
+ mdspan<float, dims<1>, layout_right> x);
24533
24532
24534
- void compute(std:: mdspan<float, std:: dims<1>> x) {
24533
+ void compute(mdspan<float, dims<1>> x) {
24535
24534
constexpr auto byte_alignment = 4 * sizeof(float);
24536
- auto accessor = std:: aligned_accessor<float, byte_alignment>{};
24535
+ auto accessor = aligned_accessor<float, byte_alignment>{};
24537
24536
auto x_handle = x.data_handle();
24538
24537
24539
- if (std:: is_sufficiently_aligned<byte_alignment>(x_handle)) {
24540
- compute_using_fourfold_overalignment(std:: mdspan{x_handle, x.mapping(), accessor});
24538
+ if (is_sufficiently_aligned<byte_alignment>(x_handle)) {
24539
+ compute_using_fourfold_overalignment(mdspan{x_handle, x.mapping(), accessor});
24541
24540
} else {
24542
24541
compute_without_requiring_overalignment(x);
24543
24542
}
0 commit comments