This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] Add a few casts to suppress loss of precision warnings
ClosedPublic

Authored by michaelrj on Jan 28 2021, 3:55 PM.

Diff Detail

Event Timeline

michaelrj created this revision.Jan 28 2021, 3:55 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 28 2021, 3:55 PM
michaelrj requested review of this revision.Jan 28 2021, 3:55 PM
sivachandra accepted this revision.Jan 28 2021, 4:44 PM
sivachandra added inline comments.
libc/utils/FPUtil/x86_64/FEnv.h
295–296

To make it absolutely clear, make it uint16_t(0x3).

This revision is now accepted and ready to land.Jan 28 2021, 4:44 PM
sivachandra retitled this revision from [libc][NFC] add static casts to fenv to [libc][NFC] Add a few casts to suppress loss of precision warnings.Jan 28 2021, 4:45 PM
sivachandra edited the summary of this revision. (Show Details)
michaelrj updated this revision to Diff 320003.Jan 28 2021, 4:56 PM
michaelrj marked an inline comment as done.

clarify the type for the constant being shifted

This revision was landed with ongoing or failed builds.Jan 28 2021, 5:16 PM
This revision was automatically updated to reflect the committed changes.