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

Raman Tenneti via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Feb 10 16:39:47 PST 2023


rtenneti created this revision.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
rtenneti requested review of this revision.

Per spec:

- https://pubs.opengroup.org/onlinepubs/9699919799/functions/htonl.html
- https://pubs.opengroup.org/onlinepubs/9699919799/functions/htons.html

Also adds UInt16Type and UInt32Type to spec.td

Co-authored-by: Jeff Bailey <jbailey at google.com>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143795

Files:
  libc/config/linux/aarch64/entrypoints.txt
  libc/config/linux/x86_64/entrypoints.txt
  libc/config/linux/x86_64/headers.txt
  libc/include/CMakeLists.txt
  libc/include/arpa/inet.h.def
  libc/spec/posix.td
  libc/spec/spec.td
  libc/src/CMakeLists.txt
  libc/src/network/CMakeLists.txt
  libc/src/network/htonl.cpp
  libc/src/network/htonl.h
  libc/src/network/htons.cpp
  libc/src/network/htons.h
  libc/test/src/CMakeLists.txt
  libc/test/src/network/CMakeLists.txt
  libc/test/src/network/htonl_test.cpp
  libc/test/src/network/htons_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143795.496634.patch
Type: text/x-patch
Size: 10574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230211/366f63c7/attachment.bin>


More information about the libc-commits mailing list