commit | f12b35dc2730fa738ded77d7ffa8d03b8183b273 | [log] [tgz] |
---|---|---|
author | Andrew Scull <ascull@google.com> | Mon Jul 16 12:12:59 2018 +0100 |
committer | Andrew Scull <ascull@google.com> | Mon Jul 16 12:12:59 2018 +0100 |
tree | f2cd9594a0bc9487c56f36619e373496183d800f | |
parent | 29d40395b269ffe9a70e00b39756909d56bfeb7c [diff] |
Use the compiler for endian conversions clang and gcc both define macros describing the endianess of the target architecture and have builtin macros for byte swapping. The macros expand in place and lets the compiler insert specialised assembly if it so chooses. Change-Id: I6060a0a7952f0863797db65d471f1d21c215b671