Skip to content

Commit

Permalink
Fix clang alignment warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jmvalin committed Mar 2, 2024
1 parent ab2ab57 commit 6880cdd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dnn/vec_avx.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,15 +183,15 @@ static inline mm256i_emu mm256_setzero_si256(void) {
static inline mm256i_emu mm256_loadu_si256(const mm256i_emu *src) {
mm256i_emu ret;
ret.lo = _mm_loadu_si128((const __m128i*)src);
ret.hi = _mm_loadu_si128((const __m128i*)(&((const char *)src)[16]));
ret.hi = _mm_loadu_si128(&((const __m128i*)src)[1]);
return ret;
}
#define _mm256_loadu_si256(src) mm256_loadu_si256(src)


static inline void mm256_storeu_si256(mm256i_emu *dst, mm256i_emu src) {
_mm_storeu_si128((__m128i*)dst, src.lo);
_mm_storeu_si128((__m128i*)(&((char *)dst)[16]), src.hi);
_mm_storeu_si128(&((__m128i*)dst)[1], src.hi);
}
#define _mm256_storeu_si256(dst, src) mm256_storeu_si256(dst, src)

Expand Down

0 comments on commit 6880cdd

Please sign in to comment.