Project - Stage 2.1 - Project Optimize 1

Previous Reading

Project Optimize Plan

The First Algorithm Improvement

Bit operation only needs an instruction cycle to complete, and most of the C compiler "%" operation is to call subroutines to complete, the code is long, slow execution speed. In general, as long as the remainder of 2n square is sought, the method of bit operation can be used instead.

codewordmask.c



size % 4 size & 3




Comments

Popular posts from this blog

Project - Stage 2.3 - After Optimize

Project - Stage 1.0 - Project Optimize Plan