以8bit为单位对32bit的每一个8bit赋同一个值,这种有没有最快的实现方法,目前我知道的方法是:
unsigned int i_32 = uint8_t * 0x01010101;
有没有更快的方法。
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
以8bit为单位对32bit的每一个8bit赋同一个值,这种有没有最快的实现方法,目前我知道的方法是:
unsigned int i_32 = uint8_t * 0x01010101;
有没有更快的方法。