Optimize non-native-size memcpy.

This commit is contained in:
Bartosz Taudul 2020-04-13 13:45:21 +02:00
parent aa8b84aa6c
commit a2187565d1

View File

@ -596,7 +596,8 @@ private:
else
{
assert( sizeof( size ) == 8 );
memcpy( &item->memAlloc.size, &size, 6 );
memcpy( &item->memAlloc.size, &size, 4 );
memcpy( ((char*)&item->memAlloc.size)+4, ((char*)&size)+4, 2 );
}
GetProfiler().m_serialQueue.commit_next();
}