This is an archive of the discontinued LLVM Phabricator instance.

[libc] Fix libmath test compilation when using UInt<T>
ClosedPublic

Authored by mikhail.ramalho on May 9 2023, 1:44 PM.

Details

Summary

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.

Diff Detail

Event Timeline

mikhail.ramalho created this revision.May 9 2023, 1:44 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 9 2023, 1:44 PM
mikhail.ramalho requested review of this revision.May 9 2023, 1:44 PM
lntue accepted this revision.May 9 2023, 3:21 PM
This revision is now accepted and ready to land.May 9 2023, 3:21 PM

Removed wrong conversion from uint<T> to long double

lntue accepted this revision.May 12 2023, 9:31 AM
lntue accepted this revision.Jun 20 2023, 11:44 AM