[all-commits] [llvm/llvm-project] d8e55c: [libc] Expose the Sign type for shared use (#150083)
Leandro Lacerda via All-commits
all-commits at lists.llvm.org
Tue Jul 22 13:29:23 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d8e55c842bf4bb437c8aa94d38ef368b2f103aec
https://github.com/llvm/llvm-project/commit/d8e55c842bf4bb437c8aa94d38ef368b2f103aec
Author: Leandro Lacerda <leandrolcampos at yahoo.com.br>
Date: 2025-07-22 (Tue, 22 Jul 2025)
Changed paths:
A libc/shared/sign.h
Log Message:
-----------
[libc] Expose the Sign type for shared use (#150083)
This patch exposes the internal `Sign` type for shared use by other LLVM
subprojects, following the pattern established by `FPBits`.
The `FPBits` utility is exposed via `libc/shared/fp_bits.h`. However,
its public interface relies on the `Sign` type for, e.g., creating
signed infinities and returning the sign of a value. Currently, users of
the shared `FPBits` have no way to access the `Sign` type.
Following the existing pattern for sharing `libc` utilities, this patch
adds a new public header `libc/shared/sign.h`. This header simply
includes the internal `src/__support/sign.h` and brings the `Sign` type
into the `shared` namespace.
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