mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 11:20:29 -05:00
For copies shorter than 512 bytes, the data is copied using plain ld/std instructions. For 512 bytes or more, the copy is done in 3 phases: Phase 1: copy from the src buffer until it's aligned at a 16-byte boundary Phase 2: copy as many aligned 64-byte blocks from the src buffer as possible Phase 3: copy the remaining data, if any In phase 2, this code uses VSX instructions when available. Otherwise, it uses ldx/stdx. Submitted by: Luis Pires <lffpires_ruabrasil.org> (original version) Reviewed by: jhibbits Differential Revision: https://reviews.freebsd.org/D15118
18 lines
282 B
Makefile
18 lines
282 B
Makefile
# $FreeBSD$
|
|
|
|
MDSRCS+= \
|
|
bcopy.S \
|
|
bcopy_vsx.S \
|
|
bcopy_resolver.c \
|
|
memcpy.S \
|
|
memcpy_vsx.S \
|
|
memcpy_resolver.c \
|
|
memmove.S \
|
|
memmove_vsx.S \
|
|
memmove_resolver.c \
|
|
strcpy_arch_2_05.S \
|
|
strcpy.c \
|
|
strcpy_resolver.c \
|
|
strncpy_arch_2_05.S \
|
|
strncpy.c \
|
|
strncpy_resolver.c
|