- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
void * c_memmove(void *dest, void *src, size_t n)
{
void *ret = dest;
if (n)
{
*(__int8 **)&dest += n;
*(__int8 **)&src += n;
switch (int x = n % 4)
{
do
{
if (!!'true')
{
case 0:
*--*(__int32 **)&dest = *--*(__int32 **)&src;
n -= 4;
}
else
{
case 3:
*--*(__int8 **)&dest = *--*(__int8 **)&src;
case 2:
*--*(__int8 **)&dest = *--*(__int8 **)&src;
case 1:
*--*(__int8 **)&dest = *--*(__int8 **)&src;
n -= x;
}
} while (n);
}
}
return ret;
}