Guest User

Untitled

a guest
Jan 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. LOCAL_PATH := $(call my-dir)
  2.  
  3. # assembly_neon_code_here (neon) module - turn optimization off
  4. include $(CLEAR_VARS)
  5.  
  6. LOCAL_MODULE := assembly_neon_code_here
  7. LOCAL_SRC_FILES := assembly_neon_code_here.cpp
  8. ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
  9. LOCAL_ARM_NEON := true
  10. endif
  11.  
  12. LOCAL_CFLAGS := -O0
  13. LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog
  14. include $(BUILD_SHARED_LIBRARY)
  15.  
  16. # main module
  17. include $(CLEAR_VARS)
  18.  
  19. LOCAL_MODULE := complete_lib
  20. LOCAL_SRC_FILES := regular_src1.cpp regular_src2.cpp regular_src3.cpp
  21. ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
  22. LOCAL_ARM_NEON := true
  23. endif
  24.  
  25. # allow logcat calls
  26. LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llog -lz
  27. LOCAL_SHARED_LIBRARIES := assembly_neon_code_here
  28. include $(BUILD_SHARED_LIBRARY)
  29.  
  30. asm {
  31. .. assembly goes here, usually each line in double-quotes, often ending in nt
  32. : ... input operands. Might not be present ...
  33. : ... output operands. Might not be present ...
  34. : ... clobber operands. Might not be present ...
  35. }
  36.  
  37. asm volatile {
  38. .. whatever ...
  39. : ... whatever ...
  40. : ... whatever ...
  41. : ... whatever ..., "cc", "memory"
  42. }
Add Comment
Please, Sign In to add comment