summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2012-07-06 19:16:56 +0000
committerHoward Hinnant <hhinnant@apple.com>2012-07-06 19:16:56 +0000
commit9d6d1c6860f4c5c2e12ea5afeee2180e473eab62 (patch)
treee12991a759026f083ba84c09600148c0a6272b47 /libcxx/include
parent9c14b75a377ce3bd22a82492f817edb6e2c40427 (diff)
downloadbcm5719-llvm-9d6d1c6860f4c5c2e12ea5afeee2180e473eab62.tar.gz
bcm5719-llvm-9d6d1c6860f4c5c2e12ea5afeee2180e473eab62.zip
Apply noexcept to those functions implemented in <cstdlib> as a conforming extension.
llvm-svn: 159850
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/cstdlib8
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/cstdlib b/libcxx/include/cstdlib
index a5c78e98274..bf8e85e7bdb 100644
--- a/libcxx/include/cstdlib
+++ b/libcxx/include/cstdlib
@@ -138,11 +138,11 @@ using ::quick_exit;
// MSVC already has the correct prototype in <stdlib.h.h> #ifdef __cplusplus
#if !defined(_MSC_VER) && !defined(__sun__)
-inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) {return labs(__x);}
-inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) {return llabs(__x);}
+inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {return labs(__x);}
+inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {return llabs(__x);}
-inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) {return ldiv(__x, __y);}
-inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y) {return lldiv(__x, __y);}
+inline _LIBCPP_INLINE_VISIBILITY ldiv_t div( long __x, long __y) _NOEXCEPT {return ldiv(__x, __y);}
+inline _LIBCPP_INLINE_VISIBILITY lldiv_t div(long long __x, long long __y) _NOEXCEPT {return lldiv(__x, __y);}
#endif // _MSC_VER
_LIBCPP_END_NAMESPACE_STD
OpenPOWER on IntegriCloud