4 ms·
I don't understand, if you're trying to work around aliasing restrictions why would you use `uint8_t*` in the first place? By definition `sizeof(char) == 1`, s
by simias 5y ago
I don't understand, if you're trying to work around aliasing restrictions why would you use `uint8_t*` in the first place?
By definition `sizeof(char) == 1`, so that's almost always what you want when messing with types in C anyway. What you want is bytes, not octets.
- kevin_thibedeau 5y agochars can be two octets on some DSP platforms that lack byte addressability.
- loeg 5y agosizeof(char) must always be 1, regardless of how many bits or octets that represents. On such a platform, uint8_t does not exist.