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 copy的最快实现方式



以8bit为单位对32bit的每一个8bit赋同一个值,这种有没有最快的实现方法,目前我知道的方法是:

unsigned int i_32 = uint8_t * 0x01010101;

有没有更快的方法。