1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

some code cleanups

This commit is contained in:
Stefan Lankes 2016-10-05 08:56:29 +02:00
parent 67555fba91
commit 8eecc1f777

View file

@ -77,7 +77,7 @@ inline static void *memset(void* dest, int val, size_t count)
"andq $7, %%rcx\n\t"
"rep stosb\n\t"
: "=&c"(i), "=&D"(j)
: "a"((size_t)val), "1"(dest), "0"(count/8), "g"(count): "memory","cc");
: "a"(0x00ULL), "1"(dest), "0"(count/8), "g"(count): "memory","cc");
}
return dest;