[libc++] Move __clamp_to_integral to <cmath>, and harden against min()/max() macros
authorLouis Dionne <ldionne@apple.com>
Wed, 4 Sep 2019 13:35:03 +0000 (13:35 +0000)
committerLouis Dionne <ldionne@apple.com>
Wed, 4 Sep 2019 13:35:03 +0000 (13:35 +0000)
commitb92deded87ad2a98d331d23fca98a03b70c15022
treee85a7de1b005e6f9675e32a4687535519ce9e4fa
parent052297524624db02eff91252c582037dc99c0528
[libc++] Move __clamp_to_integral to <cmath>, and harden against min()/max() macros

llvm-svn: 370900
libcxx/include/cmath
libcxx/include/math.h
libcxx/test/libcxx/numerics/c.math/undef_min_max.pass.cpp [new file with mode: 0644]