Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 May 1996 20:13:03 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        bde@zeta.org.au, charnier@lirmm.fr, hackers@FreeBSD.org
Subject:   Re: strcpy, strcat: not the same look & feel.
Message-ID:  <199605281013.UAA11893@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>>Which one is faster, the old version or the one with this patch applied?
>>Libc uses another one (assembler) but this could at least make libkern
>>faster. Or is it even better to use the libc's version? I'm not really sure

I forgot to answer the main question.  libkern shouldn't be changed since:
(1) strcpy is so rarely used in the kernel that its speed isn't important.
    That's why libkern/strcpy.c is a copy of the generic strcpy.c and not
    the i386 strcpy.S.
(2) gcc inlines strcpy() (unless you compile with -O0 or -fno-buitin), so
    the libkern version is almost never used.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605281013.UAA11893>