From 9b12f23e307e65dd8cea8bff9c11aa884ee25153 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 6 Jul 2012 19:16:56 +0000 Subject: [PATCH] Apply noexcept to those functions implemented in as a conforming extension. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@159850 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/cstdlib | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/cstdlib b/include/cstdlib index a5c78e982..bf8e85e7b 100644 --- a/include/cstdlib +++ b/include/cstdlib @@ -138,11 +138,11 @@ using ::quick_exit; // MSVC already has the correct prototype in #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