char[] to hex string exercise

前端 未结 16 909
感情败类
感情败类 2021-01-12 19:14

Below is my current char* to hex string function. I wrote it as an exercise in bit manipulation. It takes ~7ms on a AMD Athlon MP 2800+ to hexify a 10 million byte array. Is

16条回答
  •  清歌不尽
    2021-01-12 20:05

    not going to make a lot of difference... *pChar-(ofs*16) can be done with [*pCHar & 0x0F]

提交回复
热议问题