News for hackers. Stuff that matters.
Re:Implementing Hash Tables in C by simias on Saturday October 16, 2021 @04:23PM (#28891141)
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.

Re:Implementing Hash Tables in C by kevin_thibedeau on Saturday October 16, 2021 @05:13PM (#28891575)
chars can be two octets on some DSP platforms that lack byte addressability.
Re:Implementing Hash Tables in C by loeg on Saturday October 16, 2021 @05:19PM (#28891645)
sizeof(char) must always be 1, regardless of how many bits or octets that represents. On such a platform, uint8_t does not exist.