[Nottingham] A Little Coding Gem

Mike Cardwell nlug at lists.grepular.com
Thu Nov 15 23:34:44 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

On 15/11/12 23:35, Mike Cardwell wrote:

> Also, big/little endian tends to apply to the order of bytes,
> whereas this bit of code changed the order of the bits inside the
> bytes too.

Hmm. Now I've said this, I'm not 100% sure I'm right. Somebody correct
me if I'm wrong please. I think my confusion came from the way the
shift operators in C behave the same way regardless of the endianness
of the system.

- -- 
Mike Cardwell  https://grepular.com/     http://cardwellit.com/
OpenPGP Key    35BC AF1D 3AA2 1F84 3DC3  B0CF 70A5 F512 0018 461F
XMPP OTR Key   8924 B06A 7917 AAF3 DBB1  BF1B 295C 3C78 3EF1 46B4
-----BEGIN PGP SIGNATURE-----

iQGGBAEBCgBwBQJQpXzAMBSAAAAAACAAB3ByZWZlcnJlZC1lbWFpbC1lbmNvZGlu
Z0BwZ3AuY29tcGdwbWltZTgUgAAAAAAVABpwa2EtYWRkcmVzc0BnbnVwZy5vcmdt
aWtlLmNhcmR3ZWxsQGdyZXB1bGFyLmNvbQAKCRCdJiMBwdHnBNqzB/9U8N3ZCwv1
0JEZOxKv2xSnDLMrbA9SpxGYXj5WwKxrJIdqMbkJoR+CGEPs4n6KuEbLzxI8oODe
QulGhPJCexTpAeNiTvjMcB4kDnnSuKQU4ynmox6dOmUfamLfTu4lAcBRMAtTxdwP
us7t13y3vOh0OzA6w0v9syN854Ku8MGawp6cpj0/QZ8EEJzazEy9OKhzSdlHv8de
NqgXQxnUCUAHSaOu4MlXfOXFqz8A1JBIhcEFqFa0WYA+DNSco0VZXRSjMQ3nwYh2
IEXW6Vtp0VhPzJWHqNAL52cmKJnBPiptPpw7tBKWKUfOelfUxQA5zdbXth2tFPak
fMhf/1C07EoI
=ArTs
-----END PGP SIGNATURE-----



More information about the Nottingham mailing list