- cosmetic changes
git-svn-id: http://svn.lfbs.rwth-aachen.de/svn/scc/trunk/MetalSVM@64 315a16e6-25f9-4109-90ae-ca3045a26c18
This commit is contained in:
parent
5295579209
commit
ed172cfb18
1 changed files with 2 additions and 2 deletions
|
@ -66,14 +66,14 @@ inline static void *memset(void *dest, int val, size_t count)
|
|||
inline static size_t strlen(const char *str)
|
||||
{
|
||||
size_t len = 0;
|
||||
uint32_t i, j = 0;
|
||||
uint32_t i, j;
|
||||
|
||||
if (BUILTIN_EXPECT(!str, 0))
|
||||
return len;
|
||||
|
||||
asm volatile("not %%ecx; cld; repne ; scasb; not %%ecx; dec %%ecx"
|
||||
: "=&c"(len), "=&D"(i), "=&a"(j)
|
||||
: "2"(j), "1"(str), "0"(len)
|
||||
: "2"(0), "1"(str), "0"(len)
|
||||
: "memory");
|
||||
|
||||
return len;
|
||||
|
|
Loading…
Add table
Reference in a new issue