mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
set value outside of loop
This commit is contained in:
parent
6372dc6884
commit
c6701a8cd6
@ -468,10 +468,10 @@ void blt_clear(
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
if (size < 1024 * 100 && g_blt_use_avx && !((DWORD)dst % 32))
|
if (size < 1024 * 100 && g_blt_use_avx && !((DWORD)dst % 32))
|
||||||
{
|
{
|
||||||
|
__m256i c0 = _mm256_set1_epi8(color);
|
||||||
|
|
||||||
while (size >= 128)
|
while (size >= 128)
|
||||||
{
|
{
|
||||||
__m256i c0 = _mm256_set1_epi8(color);
|
|
||||||
|
|
||||||
_mm256_store_si256((((__m256i*)dst) + 0), c0);
|
_mm256_store_si256((((__m256i*)dst) + 0), c0);
|
||||||
_mm256_store_si256((((__m256i*)dst) + 1), c0);
|
_mm256_store_si256((((__m256i*)dst) + 1), c0);
|
||||||
_mm256_store_si256((((__m256i*)dst) + 2), c0);
|
_mm256_store_si256((((__m256i*)dst) + 2), c0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user