If you had to convert
unsigned short data1[32]
to
unsigned char* data2
in a tight loop to be executed 10 million times
what function would you use to get the best performance?
I am using this
reinterpret_cast<unsigned char*>(data1);
but was wondering if there is a better way
reinterpret_castis the holy grail of performance seeking coders, namely code that results in zero clock cycles.