Skip to content

Commit d65a3b5

Browse files
author
neok-m4700
authored
Update vectorized_code.rst
Fix typo.
1 parent 830509d commit d65a3b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/vectorized_code.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Using the auto detection mechanism does not require a lot of change:
8787
b_type bvec = xsimd::load_unaligned(&b[i]);
8888
b_type rvec = (avec + bvec) / 2;
8989
xsimd::store_unaligned(&res[i], rvec);
90-
// or rvec.store_unalined(&res[i]);
90+
// or rvec.store_unaligned(&res[i]);
9191
}
9292
// Remaining part that cannot be vectorize
9393
for(std::size_t i = vec_size; i < size; ++i)
@@ -128,7 +128,7 @@ with STL containers. Let's change the previous code so it can take advantage of
128128
b_type bvec = xsimd::load_aligned(&b[i]);
129129
b_type rvec = (avec + bvec) / 2;
130130
xsimd::store_unaligned(&res[i], rvec);
131-
// or rvec.store_unalined(&res[i]);
131+
// or rvec.store_unaligned(&res[i]);
132132
}
133133
// Remaining part that cannot be vectorize
134134
for(std::size_t i = vec_size; i < size; ++i)

0 commit comments

Comments
 (0)