Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Oct 20, 2023
1 parent f5cae37 commit e97c97a
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions src/layer/x86/x86_usability.h
Original file line number Diff line number Diff line change
Expand Up @@ -610,36 +610,6 @@ static void transpose8x18_ps(__m256& _r0, __m256& _r1, __m256& _r2, __m256& _r3,
_rh = _mm256_permute2f128_ps(_tmpy, _tmpz, _MM_SHUFFLE(0, 3, 0, 1));
}

static NCNN_FORCEINLINE void transpose8x8_epi16(__m128i& _r0, __m128i& _r1, __m128i& _r2, __m128i& _r3, __m128i& _r4, __m128i& _r5, __m128i& _r6, __m128i& _r7)
{
__m128i _tmp0 = _mm_unpacklo_epi16(_r0, _r1);
__m128i _tmp1 = _mm_unpackhi_epi16(_r0, _r1);
__m128i _tmp2 = _mm_unpacklo_epi16(_r2, _r3);
__m128i _tmp3 = _mm_unpackhi_epi16(_r2, _r3);
__m128i _tmp4 = _mm_unpacklo_epi16(_r4, _r5);
__m128i _tmp5 = _mm_unpackhi_epi16(_r4, _r5);
__m128i _tmp6 = _mm_unpacklo_epi16(_r6, _r7);
__m128i _tmp7 = _mm_unpackhi_epi16(_r6, _r7);

__m128i _tmp8 = _mm_unpacklo_epi32(_tmp0, _tmp2);
__m128i _tmp9 = _mm_unpackhi_epi32(_tmp0, _tmp2);
__m128i _tmpa = _mm_unpacklo_epi32(_tmp1, _tmp3);
__m128i _tmpb = _mm_unpackhi_epi32(_tmp1, _tmp3);
__m128i _tmpc = _mm_unpacklo_epi32(_tmp4, _tmp6);
__m128i _tmpd = _mm_unpackhi_epi32(_tmp4, _tmp6);
__m128i _tmpe = _mm_unpacklo_epi32(_tmp5, _tmp7);
__m128i _tmpf = _mm_unpackhi_epi32(_tmp5, _tmp7);

_r0 = _mm_unpacklo_epi64(_tmp8, _tmpc);
_r1 = _mm_unpackhi_epi64(_tmp8, _tmpc);
_r2 = _mm_unpacklo_epi64(_tmp9, _tmpd);
_r3 = _mm_unpackhi_epi64(_tmp9, _tmpd);
_r4 = _mm_unpacklo_epi64(_tmpa, _tmpe);
_r5 = _mm_unpackhi_epi64(_tmpa, _tmpe);
_r6 = _mm_unpacklo_epi64(_tmpb, _tmpf);
_r7 = _mm_unpackhi_epi64(_tmpb, _tmpf);
}

static NCNN_FORCEINLINE __m256 HorizontalSums(__m256& v0, __m256& v1, __m256& v2, __m256& v3, __m256& v4, __m256& v5, __m256& v6, __m256& v7)
{
const __m256 s01 = _mm256_hadd_ps(v0, v1);
Expand Down

0 comments on commit e97c97a

Please sign in to comment.