Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOCAL_PATH := $(call my-dir)
- # assembly_neon_code_here (neon) module - turn optimization off
- include $(CLEAR_VARS)
- LOCAL_MODULE := assembly_neon_code_here
- LOCAL_SRC_FILES := assembly_neon_code_here.cpp
- ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
- LOCAL_ARM_NEON := true
- endif
- LOCAL_CFLAGS := -O0
- LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
- include $(BUILD_SHARED_LIBRARY)
- # main module
- include $(CLEAR_VARS)
- LOCAL_MODULE := complete_lib
- LOCAL_SRC_FILES := regular_src1.cpp regular_src2.cpp regular_src3.cpp
- ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
- LOCAL_ARM_NEON := true
- endif
- # allow logcat calls
- LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog -lz
- LOCAL_SHARED_LIBRARIES := assembly_neon_code_here
- include $(BUILD_SHARED_LIBRARY)
- asm {
- .. assembly goes here, usually each line in double-quotes, often ending in nt
- : ... input operands. Might not be present ...
- : ... output operands. Might not be present ...
- : ... clobber operands. Might not be present ...
- }
- asm volatile {
- .. whatever ...
- : ... whatever ...
- : ... whatever ...
- : ... whatever ..., "cc", "memory"
- }
Add Comment
Please, Sign In to add comment