If I want to replace memcpy of linux with NEON based memcpy for a faster operation,how to do?
Need to change complier options?Or something else?
thanks for any reply.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
If I want to replace memcpy of linux with NEON based memcpy for a faster operation,how to do?
Need to change complier options?Or something else?
thanks for any reply.
DVR RDK 4.0 includes functions for neon optimized memcpy. The function is called memcpy_neon and has same signature as memcpy. You can use it from user space code by explicity calling memcpy_neon where required. memcpy_neon is beneficial only for large memory copies .Pls see this article from for details of using neon based memcpy which is adopted in dvr rdk 4.0
http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka13544.html
After you install NVRSOURCE_04.00.00.03.tar.lzma package you will see DVRRDK_04.00.00.03/dvr_rdk/module/memcpy_neon folder which you can use as it is in your application.
Can I just replace memcpy_neos.S with memcpy.s in dvrrdk_03.00.00.00/ti_tools/linux_lsp/linux-psp-dvr-04.04.00.01/src/linux_04.04.00.01/arch/arm/lib/memcpy.s?
No you cannot use neon instructions in kernel space. The LD_PRELOAD suggested by Pierre above is the preferred method and can be used only for user space code.
hello Yogesh,
Yogesh Marathe said:After you install NVRSOURCE_04.00.00.03.tar.lzma package you will see DVRRDK_04.00.00.03/dvr_rdk/module/memcpy_neon folder which you can use as it is in your application.
by following, we found nothing about memcpy_neon. Do I mis-understand ?
[/areaX/DVRRDK_04.00.00.03/DVRRDK_04.00.00.03] $ find ./dvr_rdk/ -type f -name "memcpy_neon"
[/areaX/DVRRDK_04.00.00.03/DVRRDK_04.00.00.03] $
Hi,Young
When I install NVRSOURCE_04.00.00.03.tar.lzma package ,it says the data of package is broken,can you give a copy of NVRSOURCE_04.00.00.03.tar.lzma package
my email : xiaodeo@126.com
thank a lot!
regards
shawn