当前位置:网站首页>Use arm neon operation to improve memory copy speed

Use arm neon operation to improve memory copy speed

2022-07-05 08:47:00 hankfu

stay arm CPU On , Use arm Neon operation , Can improve memory copy speed .

First include Neon The header file arm_neon.h.

#include <arm_neon.h>

Reuse Neon operation .

    p_u8x16_buffer = (volatile uint8x16_t* )p_u8_buffer;
    for( i=0;  i<i_data_num; i++ )
    {
    	vst1q_u8( (uint8_t *) &p_u8x16_buffer[i], vrst16);
    }
原网站

版权声明
本文为[hankfu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050842306245.html