[DiscordArchive] Are they packed from LSB to MSB, or vice-versa? Or is it dependent on endian of the processor?
[DiscordArchive] Are they packed from LSB to MSB, or vice-versa? Or is it dependent on endian of the processor?
Archived author: Quantam • Posted: 2018-06-11T01:39:20.738000+00:00
Original source
Are they packed from LSB to MSB, or vice-versa? Or is it dependent on endian of the processor?
Archived author: Quantam • Posted: 2018-06-11T01:43:27.635000+00:00
Original source
Google suggests endian-dependent. So the code given should work for little endian machines
Archived author: Quantam • Posted: 2018-06-11T01:43:58.864000+00:00
Original source
Huh... what does Mac use these days? Do they still use big endian, or do they use little endian since switching to Intel processors?
Archived author: Quantam • Posted: 2018-06-11T01:50:39.497000+00:00
Original source
FYI, my best guess why they use sign-mag format is fast conversion with floating-point, which uses sign-mag. You can just mask, shift, and | to get the floating-point vesion
Archived author: Quantam • Posted: 2018-06-11T01:54:57.133000+00:00
Original source
...actually that's not true with the way floating-point stores the leading bit implicitly. Never mind.