[all-commits] [llvm/llvm-project] caf079: [clang][headers][endian.h] add some common extensi...

David Tenty via All-commits all-commits at lists.llvm.org
Thu Mar 19 20:13:59 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: caf079fbb2f72d4c3af20720e43bcf73d306ca6f
      https://github.com/llvm/llvm-project/commit/caf079fbb2f72d4c3af20720e43bcf73d306ca6f
  Author: David Tenty <daltenty at ibm.com>
  Date:   2026-03-19 (Thu, 19 Mar 2026)

  Changed paths:
    M clang/lib/Headers/endian.h
    M clang/test/Headers/endian.c

  Log Message:
  -----------
  [clang][headers][endian.h] add some common extensions (#187565)

This PR adds two common extensions to `endian.h` found in some
implementations which we've encountered usages of in existing code (which
are allowable under POSIX), namely:

- double underscore versions of the byte order macros
- PDP endianness macros  

(note: we don't attempt to implement the actual conversion helpers for
PDP endianness, as LLVM doesn't support these targeting platforms with
this endianness, we just provide the macro so code checking against them
on other targets will compile)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list