|
|
back to boardMy favorate answer to this question, but dunno y it is not fast enough. union message { char bytes[4]; unsigned value; void reverse() { swap(bytes[0], bytes[3]); swap(bytes[1], bytes[2]); } }; Re: My favorate answer to this question, but dunno y it is not fast enough. Posted by Egor 20 Sep 2020 23:23 Wow! That's unexpected =) Re: My favorate answer to this question, but dunno y it is not fast enough. Wonderful! |
|
|