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
Post a Comment