Skip to content

Commit

Permalink
Fix a typo that broke certain build combinations
Browse files Browse the repository at this point in the history
This code path was only compiled if SVE is enabled and the ifunc
attribute is not. Normally !ifunc is tested by the MacOS builds, but SVE
is disabled in that case.
  • Loading branch information
bmerry committed Nov 7, 2024
1 parent ea099ad commit cf7d0e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common_memcpy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ void *memcpy_nontemporal(void * __restrict__ dest, const void * __restrict__ src
{
#if SPEAD2_USE_SVE_STREAM
static void *(*memcpy_nontemporal_ptr)(void * __restrict__ dest, const void * __restrict__ src, std::size_t n) noexcept =
spead2_resolve_memcpy_nontemporal(getauxval(AT_HWCAPS));
spead2_resolve_memcpy_nontemporal(getauxval(AT_HWCAP));
#else
static void *(*memcpy_nontemporal_ptr)(void * __restrict__ dest, const void * __restrict__ src, std::size_t n) noexcept =
spead2_resolve_memcpy_nontemporal();
Expand Down

0 comments on commit cf7d0e2

Please sign in to comment.