ARM NEON 指令

    在初学NDK时,接触到 HelloNeon例程,了解到 Neon是ARMv7-AR 系列中引入的并行模块,可以让你同时操作8个16位数据或4个32位数据,在信号处理,图像处理,视频编解码优化方面有很高的应用价值。在本文中罗列一些信息,供以后参考。

NEON 汇编指令一览 

http://infocenter.arm.com/help/basic/help.jsp?topic=/com.arm.doc.dui0204ic/CJAJIIGG.html

 

ARM 体系结构参考手册 ARMv7-A 和 ARMv7-R 版

http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0406c/index.html

 

HelloNeon中FIR滤波器的C语言实现

 

/* this is a FIR filter implemented in C */
static void
fir_filter_c(short *output, const short* input, const short* kernel, int width, int kernelSize)
{
    int  offset = -kernelSize/2;
    int  nn;
    for (nn = 0; nn < width; nn++) {
        int sum = 0;
        int mm;
   

你可能感兴趣的:(Android)