39 #pragma GCC system_header
43 #ifndef _GLIBCXX_CSTDLIB
44 #define _GLIBCXX_CSTDLIB 1
52 #define EXIT_SUCCESS 0
53 #define EXIT_FAILURE 1
57 extern "C" void abort(
void) throw () _GLIBCXX_NORETURN;
58 extern "C"
int atexit(
void (*)(
void)) throw ();
59 extern "C"
void exit(
int) throw () _GLIBCXX_NORETURN;
60 #if __cplusplus >= 201103L
61 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
62 extern "C" int at_quick_exit(
void (*)(
void)) throw ();
64 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
65 extern "C" void quick_exit(
int) throw() _GLIBCXX_NORETURN;
78 #if __cplusplus >= 201103L
79 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
99 #if __cplusplus >= 201103L
100 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
114 namespace std _GLIBCXX_VISIBILITY(default)
116 _GLIBCXX_BEGIN_NAMESPACE_VERSION
124 #if __cplusplus >= 201103L
125 # ifdef _GLIBCXX_HAVE_AT_QUICK_EXIT
126 using ::at_quick_exit;
141 #ifdef _GLIBCXX_HAVE_MBSTATE_T
145 #endif // _GLIBCXX_HAVE_MBSTATE_T
147 #if __cplusplus >= 201103L
148 # ifdef _GLIBCXX_HAVE_QUICK_EXIT
159 #ifdef _GLIBCXX_USE_WCHAR_T
162 #endif // _GLIBCXX_USE_WCHAR_T
164 #ifndef __CORRECT_ISO_CPP_STDLIB_H_PROTO
166 abs(
long __i) {
return __builtin_labs(__i); }
169 div(
long __i,
long __j) {
return ldiv(__i, __j); }
172 #ifdef _GLIBCXX_USE_LONG_LONG
174 abs(
long long __x) {
return __builtin_llabs (__x); }
177 #if !defined(__STRICT_ANSI__) && defined(_GLIBCXX_USE_INT128)
179 abs(__int128 __x) {
return __x >= 0 ? __x : -__x; }
182 _GLIBCXX_END_NAMESPACE_VERSION
196 namespace __gnu_cxx _GLIBCXX_VISIBILITY(default)
198 _GLIBCXX_BEGIN_NAMESPACE_VERSION
200 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
203 #if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
204 extern "C" void (_Exit)(int)
throw () _GLIBCXX_NORETURN;
206 #if !_GLIBCXX_USE_C99_DYNAMIC
210 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
214 div(
long long __n,
long long __d)
215 { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d;
return __q; }
220 #if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
221 extern "C" long long int (atoll)(
const char *)
throw ();
222 extern "C" long long int
223 (strtoll)(
const char * __restrict,
char ** __restrict, int)
throw ();
224 extern "C" unsigned long long int
225 (strtoull)(
const char * __restrict,
char ** __restrict, int)
throw ();
227 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
235 _GLIBCXX_END_NAMESPACE_VERSION
240 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
241 using ::__gnu_cxx::lldiv_t;
243 using ::__gnu_cxx::_Exit;
244 #if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
245 using ::__gnu_cxx::llabs;
246 using ::__gnu_cxx::div;
247 using ::__gnu_cxx::lldiv;
249 using ::__gnu_cxx::atoll;
250 using ::__gnu_cxx::strtof;
251 using ::__gnu_cxx::strtoll;
252 using ::__gnu_cxx::strtoull;
253 using ::__gnu_cxx::strtold;
256 #endif // _GLIBCXX_USE_C99
258 #endif // !_GLIBCXX_HOSTED
_Tp abs(const complex< _Tp > &)
Return magnitude of z.