[libc-commits] [PATCH] D100571: [libc] Add endianness support

Guillaume Chatelet via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Apr 16 06:18:02 PDT 2021


gchatelet added a comment.

Thx for the suggestion, I didn't go with explicit member function as it would allow for integer promotion.
In the case of endianness we want to make sure we only accept one of `uint8_t`, `uint16_t`, `uint32_t`, `uint64_t` and no other type.
I've added the symmetric functions as you suggested.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100571/new/

https://reviews.llvm.org/D100571



More information about the libc-commits mailing list