Newbie question about ‘short’ and ‘uint16_t’ data types
KenLaszlo Wed Nov 22, 2017 6:41 pm
I’m trying to make my code as fast as possible on my newly purchased Blue Pill.
I was wondering . . .
Since the CPU is a 32-bit device, is there any particular speed advantage (or other possible advantage) of using the ‘short’ and ‘uint16_t’ data types that use two bytes instead of four, please? Would Maths with these smaller data types be any faster on these 32-bit devices?
Thank you
Ken
P.S. I did a Google search and also searched this forum, but couldn’t find an answer.
