Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#include 
3
 
4
size_t strlen(const char *str)
5
{
6
int d0;
7
register int __res;
8
__asm__ __volatile__(
9
	"repne\n\t"
10
	"scasb\n\t"
11
	"notl %0\n\t"
12
	"decl %0"
13
	:"=c" (__res), "=&D" (d0) :"1" (str),"a" (0), "0" (0xffffffff));
14
return __res;
15
}