mirror of
https://github.com/opnsense/src.git
synced 2026-04-13 05:16:40 -04:00
Conceptually very similar to timingsafe_bcmp(), but with comparison logic inspired by Elijah Stone's fancy memcmp. A baseline (SSE) implementation was omitted this time as I was not able to get it to perform adequately. Best I got was 8% over the scalar version for long inputs, but slower for short inputs. Sponsored by: The FreeBSD Foundation Approved by: security (cperciva) Inspired by: https://github.com/moon-chilled/fancy-memcmp Differential Revision: https://reviews.freebsd.org/D41696 (cherry picked from commit 5048c1b85506c5e0f441ee7dd98dd8d96d0a4a24)
19 lines
258 B
Makefile
19 lines
258 B
Makefile
MDSRCS+= \
|
|
amd64_archlevel.c \
|
|
bcmp.S \
|
|
memchr.S \
|
|
memcmp.S \
|
|
memcpy.S \
|
|
memmove.S \
|
|
memset.S \
|
|
stpcpy.S \
|
|
strcat.S \
|
|
strchrnul.S \
|
|
strcmp.S \
|
|
strcpy.c \
|
|
strcspn.S \
|
|
strlen.S \
|
|
strnlen.c \
|
|
strspn.S \
|
|
timingsafe_bcmp.S \
|
|
timingsafe_memcmp.S
|