[all-commits] [llvm/llvm-project] d0d6d7: [libc] Implement ntohl and ntohs

rtenneti-google via All-commits all-commits at lists.llvm.org
Wed Feb 22 10:40:51 PST 2023


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

  Changed paths:
    M libc/config/linux/aarch64/entrypoints.txt
    M libc/config/linux/x86_64/entrypoints.txt
    M libc/spec/posix.td
    M libc/src/network/CMakeLists.txt
    M libc/src/network/htons.h
    A libc/src/network/ntohl.cpp
    A libc/src/network/ntohl.h
    A libc/src/network/ntohs.cpp
    A libc/src/network/ntohs.h
    M libc/test/src/network/CMakeLists.txt
    M libc/test/src/network/htonl_test.cpp
    M libc/test/src/network/htons_test.cpp
    A libc/test/src/network/ntohl_test.cpp
    A libc/test/src/network/ntohs_test.cpp

  Log Message:
  -----------
  [libc] Implement ntohl and ntohs

Per spec:

https://pubs.opengroup.org/onlinepubs/9699919799/functions/ntohl.html
https://pubs.opengroup.org/onlinepubs/9699919799/functions/ntohs.html

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

Reviewed By: sivachandra

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




More information about the All-commits mailing list