mirror of
https://github.com/opnsense/src.git
synced 2026-02-13 07:44:48 -05:00
On anything modern, the C version, which processes a word at a time, is much faster. The Intel optimization manual explicitly warns against using REP prefixes with SCAS or CMPS, which is exactly what the assembler version does. A simple test on a Phenom II showed the C version, compiled with -O2, to be about twice as fast determining the length of 100000 strings between 0 and 255 bytes long. MFC after: 2 weeks
7 lines
263 B
Makefile
7 lines
263 B
Makefile
# @(#)Makefile.inc 8.1 (Berkeley) 6/4/93
|
|
# $FreeBSD$
|
|
|
|
MDSRCS+=bcmp.S bcopy.S bzero.S ffs.S index.S memchr.S memcmp.S memcpy.S \
|
|
memmove.S memset.S rindex.S strcat.S strchr.S strcmp.S strcpy.S \
|
|
strncmp.S strrchr.S swab.S wcschr.S wcscmp.S wcslen.S \
|
|
wmemchr.S
|