![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SIMD优化
文章平均质量分 82
奋斗的麻雀
专注图像视频算法研究、实现
展开
-
积分图sse2优化
void GetGrayIntegralImage(unsigned char *Src, int *Integral, int Width, int Height, int Stride){ memset(Integral, 0, (Width + 1) * sizeof(int)); // 第一行都为0 int BlockSize = 8, Bl...转载 2018-12-27 16:52:55 · 377 阅读 · 0 评论 -
c 语言优化问题-内存写耗时测试
void calRowSum(uint32_t *pDst, intptr_t strideD, int32_t width, int32_t height){ for (int32_t w = 0; w < width; w++) { uint32_t *pDstTmp = &pDst[w]; for (int32_t h = 0; h < height; h...原创 2019-01-07 17:31:12 · 684 阅读 · 0 评论 -
sse2 指令解析
pxor zero, zero neg strideD自己跟自己异或,相当于清零,NEG取反操作;lea pSrcRow, [pSrc]这个就是讲pSrc的地址给pSrcRow,此时pSrcRow和pSrc具有不同的名字但是指向同一个内存;mov pSrcRow, pSrc这个相当于把pSrc的内容复制一...原创 2019-01-09 14:13:29 · 2281 阅读 · 0 评论