1 # 64-bit x86. 2 3 # 4 # Remove default implementations that we have optimized versions of. 5 # 6 7 libc_openbsd_src_files_exclude_x86_64 += \ 8 upstream-openbsd/lib/libc/string/memmove.c \ 9 upstream-openbsd/lib/libc/string/stpcpy.c \ 10 upstream-openbsd/lib/libc/string/stpncpy.c \ 11 upstream-openbsd/lib/libc/string/strcat.c \ 12 upstream-openbsd/lib/libc/string/strcpy.c \ 13 upstream-openbsd/lib/libc/string/strlcat.c \ 14 upstream-openbsd/lib/libc/string/strlcpy.c \ 15 upstream-openbsd/lib/libc/string/strncat.c \ 16 upstream-openbsd/lib/libc/string/strncmp.c \ 17 upstream-openbsd/lib/libc/string/strncpy.c \ 18 19 # 20 # Inherently architecture-specific code. 21 # 22 23 libc_bionic_src_files_x86_64 += \ 24 arch-x86_64/bionic/__bionic_clone.S \ 25 arch-x86_64/bionic/_exit_with_stack_teardown.S \ 26 arch-x86_64/bionic/__restore_rt.S \ 27 arch-x86_64/bionic/setjmp.S \ 28 arch-x86_64/bionic/syscall.S \ 29 arch-x86_64/bionic/vfork.S \ 30 31 # 32 # Optimized memory/string functions. 33 # 34 35 libc_bionic_src_files_x86_64 += \ 36 arch-x86_64/string/sse2-memcpy-slm.S \ 37 arch-x86_64/string/sse2-memmove-slm.S \ 38 arch-x86_64/string/sse2-memset-slm.S \ 39 arch-x86_64/string/sse2-stpcpy-slm.S \ 40 arch-x86_64/string/sse2-stpncpy-slm.S \ 41 arch-x86_64/string/sse2-strcat-slm.S \ 42 arch-x86_64/string/sse2-strcpy-slm.S \ 43 arch-x86_64/string/sse2-strlcat-slm.S \ 44 arch-x86_64/string/sse2-strlcpy-slm.S \ 45 arch-x86_64/string/sse2-strlen-slm.S \ 46 arch-x86_64/string/sse2-strncat-slm.S \ 47 arch-x86_64/string/sse2-strncpy-slm.S \ 48 arch-x86_64/string/sse4-memcmp-slm.S \ 49 arch-x86_64/string/ssse3-strcmp-slm.S \ 50 arch-x86_64/string/ssse3-strncmp-slm.S \ 51 52 libc_crt_target_cflags_x86_64 += \ 53 -m64 \ 54 -I$(LOCAL_PATH)/arch-x86_64/include \ 55 56 libc_crt_target_ldflags_x86_64 := -melf_x86_64 \ 57 58 libc_crt_target_crtbegin_file_x86_64 := \ 59 $(LOCAL_PATH)/arch-common/bionic/crtbegin.c \ 60 61 libc_crt_target_crtbegin_so_file_x86_64 := \ 62 $(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c \ 63 64 libc_crt_target_so_cflags_x86_64 := \ 65 -fPIC \ 66