[libc] Fix definition and use of LIBC_INLINE macro
authorRoland McGrath <mcgrathr@google.com>
Tue, 16 May 2023 21:53:03 +0000 (14:53 -0700)
committerRoland McGrath <mcgrathr@google.com>
Tue, 16 May 2023 22:11:37 +0000 (15:11 -0700)
commit2c874d2128e35bb38817f349cfdfe9eca7281c9d
treea7f49d54d08d515bb7dce43d3e2947742692bde9
parentede83e0eb8d1a4ca5279ed57c1d9f54f42fa8342
[libc] Fix definition and use of LIBC_INLINE macro

LIBC_INLINE was doubly defined in two headers.  Define it only in
one place. Also update a few uses to make sure it's always placed
where a function attribute is valid and is used consistently on
every declaration of the same function in case the attributes used
in its definition must match on declarations and definitions.

Reviewed By: abrachet

Differential Revision: https://reviews.llvm.org/D150731
libc/src/__support/endian.h
libc/src/__support/macros/config.h
libc/src/__support/macros/optimization.h