[libc-commits] [PATCH] D150223: [libc] Fix libmath test compilation when using UInt<T>

Mikhail Ramalho via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue May 9 13:44:40 PDT 2023


mikhail.ramalho created this revision.
mikhail.ramalho added reviewers: sivachandra, michaelrj, lntue.
Herald added subscribers: libc-commits, asb, ecnelises, tschuett.
Herald added projects: libc-project, All.
mikhail.ramalho requested review of this revision.

This patch adds a couple of missing explicit conversion operators + mark
the clz functions as constexpr.

There are some minor changes to when using the constexpr operator-, since
it expects an object.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D150223

Files:
  libc/src/__support/UInt.h
  libc/src/__support/builtin_wrappers.h
  libc/test/src/math/FmaTest.h
  libc/test/src/math/HypotTest.h
  libc/test/src/math/ILogbTest.h
  libc/test/src/math/LdExpTest.h
  libc/test/src/math/RIntTest.h
  libc/test/src/math/RemQuoTest.h
  libc/test/src/math/RoundToIntegerTest.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150223.520812.patch
Type: text/x-patch
Size: 8776 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230509/0929cf18/attachment.bin>


More information about the libc-commits mailing list