Это попытка скопировать один участок памяти в другой.
Приводит почему-то к сегфолту :(
----------------------------------------------
static unsigned char *__dst;
static unsigned char *__src;
static int __size;
inline void Class::cpy(unsigned char *buf)
{
__dst = (unsigned char *)data;
__src = buf;
__size = m_dim1 * m_dim2; //
__asm__ (
"ldsw __src, %si \n\t"
"lesw __dst, %di \n\t"
"movl __size, %ecx \n\t"
"cld \n\t"
"rep movsd \n\t"
);
}
---------------------------------------------
Что не правильно ?
Спасибо.
Форум —
Development

