diff options
author | Aleksoid <aleksoid@users.sourceforge.net> | 2010-05-21 03:19:57 +0400 |
---|---|---|
committer | Aleksoid <aleksoid@users.sourceforge.net> | 2010-05-21 03:19:57 +0400 |
commit | dae6425e0c23576dac77c3afae1dc6de22f983d5 (patch) | |
tree | 4afe490475fe6c37031d3a87cf616c72341cb00a | |
parent | 8e4b4bd5fd151061b1843d7613ce939ffe6c724e (diff) |
Some performance improve(cleanup unneeded code);
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1906 10f7b99b-c216-0410-bff0-8a66a9350fd8
-rw-r--r-- | src/DSUtil/DSUtil.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/DSUtil/DSUtil.cpp b/src/DSUtil/DSUtil.cpp index 24134534f..563dd1ba4 100644 --- a/src/DSUtil/DSUtil.cpp +++ b/src/DSUtil/DSUtil.cpp @@ -971,6 +971,7 @@ void memsetd(void* dst, unsigned int c, size_t nbytes) cld
rep stosd
}
+ return;
}
#endif
size_t n = nbytes / 4;
@@ -987,9 +988,6 @@ void memsetd(void* dst, unsigned int c, size_t nbytes) for (ptrdiff_t i = 0; i < o; i+=4)
_mm_storeu_si128( (__m128i*)&(((DWORD*)dst)[i]), val );
}
-
- for (ptrdiff_t i = o; i < n; i++)
- ((DWORD*)dst)[i] = c;
}
bool ExtractBIH(const AM_MEDIA_TYPE* pmt, BITMAPINFOHEADER* bih)
|