[x265] [PATCH] uncrustified pixel.inc
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Sun Aug 25 12:26:32 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1377426374 -19800
# Node ID fdced88111e9209f6f7f5919956c03bb1cda3944
# Parent a65de47f71f17c6efb674922856b58a9986841e0
uncrustified pixel.inc
diff -r a65de47f71f1 -r fdced88111e9 source/common/vec/pixel.inc
--- a/source/common/vec/pixel.inc Sun Aug 25 15:21:44 2013 +0530
+++ b/source/common/vec/pixel.inc Sun Aug 25 15:56:14 2013 +0530
@@ -30,7 +30,6 @@
#include <assert.h>
namespace {
-
#if HIGH_BIT_DEPTH
#include "pixel16.inc"
#else
@@ -313,6 +312,7 @@
void blockfil_s_4(short *dst, intptr_t dstride, short val)
{
__m128i T00;
+
T00 = _mm_cvtsi32_si128(val);
T00 = _mm_shufflelo_epi16(T00, 0);
@@ -325,6 +325,7 @@
void blockfil_s_8(short *dst, intptr_t dstride, short val)
{
__m128i T00;
+
T00 = _mm_cvtsi32_si128(val);
T00 = _mm_shufflelo_epi16(T00, 0);
T00 = _mm_shuffle_epi32(T00, 0);
@@ -342,19 +343,20 @@
void blockfil_s_16(short *dst, intptr_t dstride, short val)
{
__m128i T00;
+
T00 = _mm_cvtsi32_si128(val);
T00 = _mm_shufflelo_epi16(T00, 0);
T00 = _mm_shuffle_epi32(T00, 0);
- for(int i = 0; i < 16; i += 4)
+ for (int i = 0; i < 16; i += 4)
{
- _mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride ], T00);
+ _mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride + 8], T00);
- _mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride ], T00);
+ _mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride + 8], T00);
- _mm_storeu_si128((__m128i*)&dst[(i + 2) * dstride ], T00);
+ _mm_storeu_si128((__m128i*)&dst[(i + 2) * dstride], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 2) * dstride + 8], T00);
- _mm_storeu_si128((__m128i*)&dst[(i + 3) * dstride ], T00);
+ _mm_storeu_si128((__m128i*)&dst[(i + 3) * dstride], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 3) * dstride + 8], T00);
}
}
@@ -362,22 +364,24 @@
void blockfil_s_32(short *dst, intptr_t dstride, short val)
{
__m128i T00;
+
T00 = _mm_cvtsi32_si128(val);
T00 = _mm_shufflelo_epi16(T00, 0);
T00 = _mm_shuffle_epi32(T00, 0);
- for(int i = 0; i < 32; i += 2)
+ for (int i = 0; i < 32; i += 2)
{
- _mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride ], T00);
+ _mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride + 8], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride + 16], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 0) * dstride + 24], T00);
- _mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride ], T00);
+ _mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride + 8], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride + 16], T00);
_mm_storeu_si128((__m128i*)&dst[(i + 1) * dstride + 24], T00);
}
}
+
#endif // !HIGH_BIT_DEPTH
} // end anonymous namespace
More information about the x265-devel
mailing list