2014-09-17 04:06:31 +02:00
|
|
|
# 64-bit arm.
|
2014-01-24 00:17:50 +01:00
|
|
|
|
2014-09-17 04:06:31 +02:00
|
|
|
#
|
|
|
|
# Default implementations of functions that are commonly optimized.
|
|
|
|
#
|
|
|
|
|
|
|
|
libc_bionic_src_files_arm64 += \
|
|
|
|
bionic/__memset_chk.cpp \
|
|
|
|
bionic/__strcpy_chk.cpp \
|
|
|
|
bionic/__strcat_chk.cpp \
|
2014-02-25 03:00:43 +01:00
|
|
|
bionic/memrchr.c \
|
|
|
|
bionic/strrchr.cpp \
|
2014-09-17 04:06:31 +02:00
|
|
|
|
|
|
|
libc_freebsd_src_files_arm64 += \
|
2014-01-24 00:17:50 +01:00
|
|
|
upstream-freebsd/lib/libc/string/wcscat.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcschr.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcscmp.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcscpy.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcslen.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wcsrchr.c \
|
|
|
|
upstream-freebsd/lib/libc/string/wmemcmp.c \
|
2014-09-17 04:06:31 +02:00
|
|
|
|
|
|
|
libc_openbsd_src_files_arm64 += \
|
Add 32-bit Silvermont-optimized string/memory functions.
Add following functions:
bcopy, memcpy, memmove, memset, bzero, memcmp, wmemcmp, strlen,
strcpy, strncpy, stpcpy, stpncpy.
Create new directories inside arch-x86 to specify architecture: atom,
silvermont and generic (non atom or silvermont architectures are treated like generic).
Due to introducing optimized versions of stpcpy and stpncpy,
c-implementations of these functions are moved from
common for architectures makefile to arm and mips specific makefiles.
Change-Id: I990f8061c3e9bca1f154119303da9e781c5d086e
Signed-off-by: Varvara Rainchik <varvara.rainchik@intel.com>
2014-04-24 13:41:20 +02:00
|
|
|
upstream-openbsd/lib/libc/string/stpncpy.c \
|
2014-02-25 03:00:43 +01:00
|
|
|
upstream-openbsd/lib/libc/string/strcat.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strlcat.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strlcpy.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strncat.c \
|
|
|
|
upstream-openbsd/lib/libc/string/strncpy.c \
|
2014-01-24 00:17:50 +01:00
|
|
|
|
2014-09-17 04:06:31 +02:00
|
|
|
#
|
|
|
|
# Inherently architecture-specific code.
|
|
|
|
#
|
2014-01-24 00:17:50 +01:00
|
|
|
|
2014-09-17 04:06:31 +02:00
|
|
|
libc_bionic_src_files_arm64 += \
|
2014-01-22 04:50:58 +01:00
|
|
|
arch-arm64/bionic/__bionic_clone.S \
|
|
|
|
arch-arm64/bionic/_exit_with_stack_teardown.S \
|
|
|
|
arch-arm64/bionic/setjmp.S \
|
|
|
|
arch-arm64/bionic/__set_tls.c \
|
|
|
|
arch-arm64/bionic/syscall.S \
|
2014-08-05 22:53:31 +02:00
|
|
|
arch-arm64/bionic/vfork.S \
|
2014-01-24 00:17:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
libc_crt_target_cflags_arm64 := \
|
|
|
|
-I$(LOCAL_PATH)/arch-arm64/include
|
|
|
|
|
|
|
|
libc_crt_target_crtbegin_file_arm64 := \
|
|
|
|
$(LOCAL_PATH)/arch-arm64/bionic/crtbegin.c
|
|
|
|
|
|
|
|
libc_crt_target_crtbegin_so_file_arm64 := \
|
|
|
|
$(LOCAL_PATH)/arch-common/bionic/crtbegin_so.c
|
2014-03-05 11:40:57 +01:00
|
|
|
|
2014-05-02 03:10:51 +02:00
|
|
|
## CPU variant specific source files
|
|
|
|
ifeq ($(strip $(TARGET_CPU_VARIANT)),)
|
|
|
|
$(warning TARGET_ARCH is arm64, but TARGET_CPU_VARIANT is not defined)
|
|
|
|
endif
|
|
|
|
cpu_variant_mk := $(LOCAL_PATH)/arch-arm64/$(TARGET_CPU_VARIANT)/$(TARGET_CPU_VARIANT).mk
|
|
|
|
ifeq ($(wildcard $(cpu_variant_mk)),)
|
2014-09-24 03:31:45 +02:00
|
|
|
$(error "TARGET_CPU_VARIANT not set or set to an unknown value. Possible values are generic, denver64. Use generic for devices that do not have a CPU similar to any of the supported cpu variants.")
|
2014-05-02 03:10:51 +02:00
|
|
|
endif
|
|
|
|
include $(cpu_variant_mk)
|
|
|
|
libc_common_additional_dependencies += $(cpu_variank_mk)
|
|
|
|
|
|
|
|
cpu_variant_mk :=
|