[PATCH] D66836: [libc++] Add `__truncating_cast` for safely casting float types to integers

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 30 12:12:14 PDT 2019


EricWF updated this revision to Diff 218149.
EricWF marked an inline comment as done.
EricWF added a comment.

Address review comments.

- Document that NaN isn't a supported input.
- Fix spelling mistake.


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

https://reviews.llvm.org/D66836

Files:
  include/math.h
  test/libcxx/numerics/clamp_to_integral.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66836.218149.patch
Type: text/x-patch
Size: 5084 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190830/a9e45eee/attachment.bin>


More information about the cfe-commits mailing list