[libc-commits] [PATCH] D95646: [libc][NFC] add static casts to fenv
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Thu Jan 28 16:44:43 PST 2021
sivachandra accepted this revision.
sivachandra added inline comments.
This revision is now accepted and ready to land.
================
Comment at: libc/utils/FPUtil/x86_64/FEnv.h:297
+ x87Control = static_cast<uint16_t>(
(x87Control & ~(0x3 << internal::X87RoundingControlBitPosition)) |
+ x87Value);
----------------
To make it absolutely clear, make it `uint16_t(0x3)`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95646/new/
https://reviews.llvm.org/D95646
More information about the libc-commits
mailing list