[libc-commits] [PATCH] D152459: [libc] Add Int<> type and fix (U)Int<128> compatibility issues.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Mon Jun 12 22:43:31 PDT 2023


sivachandra accepted this revision.
sivachandra added inline comments.


================
Comment at: libc/src/__support/UInt.h:102
+  template <typename T, typename = cpp::enable_if_t<cpp::is_integral_v<T> &&
+                                                    !cpp::is_same_v<T, bool>>>
+  constexpr explicit operator T() const {
----------------
Should there be an additional condition `sizeof(T) <= 16`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152459/new/

https://reviews.llvm.org/D152459



More information about the libc-commits mailing list