Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用一些开源代码,我发现这种未排序的修改发生。
以下是代码:
... float32x4_t *_M, *_S, _norm; int n4 = ...; ... for(; i<n4; i++) *_M++ = MUL(*_M, RCP(ADD(*_S++, _norm))); ...
我如何排序这个修改?
我对此没有那么有经验,但是
for(; i<n4; i++) { *_M = MUL(*_M, RCP(ADD(*_S, _norm))); M++; S++; }
应该是等价的。