Little Endian or Big Endian?

Be expressive.

Quite right. And I tell my students this. But in this case, the operation I am trying to express is not a division but a shift. When I write "myint >> 8", I am not trying to give the compiler a hint on a clever way to divide by 256; I am telling it that I want a shift so that I can access the high bits. I don't "feel that it's bad" to write "myint / 256" -- I even proposed that earlier in the thread -- but it less directly expresses the operation I want and therefore is less readable.

Mikal

1 Like