diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-07-06 23:16:56 +0400 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-07-06 23:16:56 +0400 |
commit | 9d6d1c6860f4c5c2e12ea5afeee2180e473eab62 (patch) | |
tree | e12991a759026f083ba84c09600148c0a6272b47 /libcxx/include/cstdlib | |
parent | 9c14b75a377ce3bd22a82492f817edb6e2c40427 (diff) |
Apply noexcept to those functions implemented in <cstdlib> as a conforming extension.
llvm-svn: 159850
Diffstat (limited to 'libcxx/include/cstdlib')
-rw-r--r-- | libcxx/include/cstdlib | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/include/cstdlib b/libcxx/include/cstdlib index a5c78e98274f..bf8e85e7bdb1 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 |