[libc-commits] [PATCH] D143795: [libc] Implement htonl and htons

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Feb 15 19:47:27 PST 2023


sivachandra accepted this revision.
sivachandra added inline comments.


================
Comment at: libc/src/network/htons.cpp:15
+
+LLVM_LIBC_FUNCTION(uint16_t, htons, (uint16_t hostlong)) {
+  return Endian::to_big_endian(hostlong);
----------------
`hostshort`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143795



More information about the libc-commits mailing list