/shark/trunk/drivers/svga/glib.c |
---|
12,16 → 12,16 |
inline void memsetw(void *dst, unsigned int c, unsigned long int memdiv2) |
{ |
__asm__ __volatile__("push %%edi |
push %%eax |
push %%ecx |
movl %2, %%edi |
cld |
rep |
stosw |
pop %%ecx |
pop %%eax |
pop %%edi" |
__asm__ __volatile__("push %%edi\n\t" |
"push %%eax\n\t" |
"push %%ecx\n\t" |
"movl %2, %%edi\n\t" |
"cld\n\t" |
"rep\n\t" |
"stosw\n\t" |
"pop %%ecx\n\t" |
"pop %%eax\n\t" |
"pop %%edi\n\t" |
: |
: "c" (memdiv2), "a" (c), "b" (dst)); |