c++ - How do you cast unsigned short data[32] to unsigned char* very fast -


if had convert

unsigned short data1[32] 

to

unsigned char* data2 

in tight loop executed 10 million times function use best performance?
using this

reinterpret_cast<unsigned char*>(data1); 

but wondering if there better way

reinterpret_cast holy grail of performance seeking coders, namely code results in 0 clock cycles.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -