[all-commits] [llvm/llvm-project] fbe210: [libc] Implement htonl and htons

rtenneti-google via All-commits all-commits at lists.llvm.org
Thu Feb 16 10:12:32 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbe210dc7a6ad87a30e5ffe928a168e621f6fcc5
      https://github.com/llvm/llvm-project/commit/fbe210dc7a6ad87a30e5ffe928a168e621f6fcc5
  Author: Raman Tenneti <rtenneti at google.com>
  Date:   2023-02-16 (Thu, 16 Feb 2023)

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

  Log Message:
  -----------
  [libc] Implement htonl and htons

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>

Reviewed By: sivachandra, jeffbailey, rtenneti

Differential Revision: https://reviews.llvm.org/D143795




More information about the All-commits mailing list