OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc4/] [libstdc++-v3/] [include/] [c_std/] [cstdlib] - Diff between revs 424 and 519

Only display areas with differences | Details | Blame | View Log

Rev 424 Rev 519
// -*- C++ -*- forwarding header.
// -*- C++ -*- forwarding header.
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
// 2009, 2010  Free Software Foundation, Inc.
// 2009, 2010  Free Software Foundation, Inc.
//
//
// This file is part of the GNU ISO C++ Library.  This library is free
// This file is part of the GNU ISO C++ Library.  This library is free
// software; you can redistribute it and/or modify it under the
// software; you can redistribute it and/or modify it under the
// terms of the GNU General Public License as published by the
// terms of the GNU General Public License as published by the
// Free Software Foundation; either version 3, or (at your option)
// Free Software Foundation; either version 3, or (at your option)
// any later version.
// any later version.
// This library is distributed in the hope that it will be useful,
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
// GNU General Public License for more details.
// Under Section 7 of GPL version 3, you are granted additional
// Under Section 7 of GPL version 3, you are granted additional
// permissions described in the GCC Runtime Library Exception, version
// permissions described in the GCC Runtime Library Exception, version
// 3.1, as published by the Free Software Foundation.
// 3.1, as published by the Free Software Foundation.
// You should have received a copy of the GNU General Public License and
// You should have received a copy of the GNU General Public License and
// a copy of the GCC Runtime Library Exception along with this program;
// a copy of the GCC Runtime Library Exception along with this program;
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
// see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
// .
// .
/** @file include/cstdlib
/** @file include/cstdlib
 *  This is a Standard C++ Library file.  You should @c #include this file
 *  This is a Standard C++ Library file.  You should @c #include this file
 *  in your programs, rather than any of the @a *.h implementation files.
 *  in your programs, rather than any of the @a *.h implementation files.
 *
 *
 *  This is the C++ version of the Standard C Library header @c stdlib.h,
 *  This is the C++ version of the Standard C Library header @c stdlib.h,
 *  and its contents are (mostly) the same as that header, but are all
 *  and its contents are (mostly) the same as that header, but are all
 *  contained in the namespace @c std (except for names which are defined
 *  contained in the namespace @c std (except for names which are defined
 *  as macros in C).
 *  as macros in C).
 */
 */
//
//
// ISO C++ 14882: 20.4.6  C library
// ISO C++ 14882: 20.4.6  C library
//
//
#ifndef _GLIBCXX_CSTDLIB
#ifndef _GLIBCXX_CSTDLIB
#define _GLIBCXX_CSTDLIB 1
#define _GLIBCXX_CSTDLIB 1
#pragma GCC system_header
#pragma GCC system_header
#include 
#include 
#include 
#include 
#if !_GLIBCXX_HOSTED
#if !_GLIBCXX_HOSTED
// The C standard does not require a freestanding implementation to
// The C standard does not require a freestanding implementation to
// provide .  However, the C++ standard does still require
// provide .  However, the C++ standard does still require
//  -- but only the functionality mentioned in
//  -- but only the functionality mentioned in
// [lib.support.start.term].
// [lib.support.start.term].
#define EXIT_SUCCESS 0
#define EXIT_SUCCESS 0
#define EXIT_FAILURE 1
#define EXIT_FAILURE 1
_GLIBCXX_BEGIN_NAMESPACE(std)
_GLIBCXX_BEGIN_NAMESPACE(std)
  extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
  extern "C" void abort(void) throw () _GLIBCXX_NORETURN;
  extern "C" int atexit(void (*)()) throw ();
  extern "C" int atexit(void (*)()) throw ();
  extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
  extern "C" void exit(int) throw () _GLIBCXX_NORETURN;
_GLIBCXX_END_NAMESPACE
_GLIBCXX_END_NAMESPACE
#else
#else
#include 
#include 
// Get rid of those macros defined in  in lieu of real functions.
// Get rid of those macros defined in  in lieu of real functions.
#undef abort
#undef abort
#undef abs
#undef abs
#undef atexit
#undef atexit
#undef atof
#undef atof
#undef atoi
#undef atoi
#undef atol
#undef atol
#undef bsearch
#undef bsearch
#undef calloc
#undef calloc
#undef div
#undef div
#undef exit
#undef exit
#undef free
#undef free
#undef getenv
#undef getenv
#undef labs
#undef labs
#undef ldiv
#undef ldiv
#undef malloc
#undef malloc
#undef mblen
#undef mblen
#undef mbstowcs
#undef mbstowcs
#undef mbtowc
#undef mbtowc
#undef qsort
#undef qsort
#undef rand
#undef rand
#undef realloc
#undef realloc
#undef srand
#undef srand
#undef strtod
#undef strtod
#undef strtol
#undef strtol
#undef strtoul
#undef strtoul
#undef system
#undef system
#undef wcstombs
#undef wcstombs
#undef wctomb
#undef wctomb
_GLIBCXX_BEGIN_NAMESPACE(std)
_GLIBCXX_BEGIN_NAMESPACE(std)
  using ::div_t;
  using ::div_t;
  using ::ldiv_t;
  using ::ldiv_t;
  using ::abort;
  using ::abort;
  using ::abs;
  using ::abs;
  using ::atexit;
  using ::atexit;
  using ::atof;
  using ::atof;
  using ::atoi;
  using ::atoi;
  using ::atol;
  using ::atol;
  using ::bsearch;
  using ::bsearch;
  using ::calloc;
  using ::calloc;
  using ::div;
  using ::div;
  using ::exit;
  using ::exit;
  using ::free;
  using ::free;
  using ::getenv;
  using ::getenv;
  using ::labs;
  using ::labs;
  using ::ldiv;
  using ::ldiv;
  using ::malloc;
  using ::malloc;
#ifdef _GLIBCXX_HAVE_MBSTATE_T
#ifdef _GLIBCXX_HAVE_MBSTATE_T
  using ::mblen;
  using ::mblen;
  using ::mbstowcs;
  using ::mbstowcs;
  using ::mbtowc;
  using ::mbtowc;
#endif // _GLIBCXX_HAVE_MBSTATE_T
#endif // _GLIBCXX_HAVE_MBSTATE_T
  using ::qsort;
  using ::qsort;
  using ::rand;
  using ::rand;
  using ::realloc;
  using ::realloc;
  using ::srand;
  using ::srand;
  using ::strtod;
  using ::strtod;
  using ::strtol;
  using ::strtol;
  using ::strtoul;
  using ::strtoul;
  using ::system;
  using ::system;
#ifdef _GLIBCXX_USE_WCHAR_T
#ifdef _GLIBCXX_USE_WCHAR_T
  using ::wcstombs;
  using ::wcstombs;
  using ::wctomb;
  using ::wctomb;
#endif // _GLIBCXX_USE_WCHAR_T
#endif // _GLIBCXX_USE_WCHAR_T
  inline long
  inline long
  abs(long __i) { return labs(__i); }
  abs(long __i) { return labs(__i); }
  inline ldiv_t
  inline ldiv_t
  div(long __i, long __j) { return ldiv(__i, __j); }
  div(long __i, long __j) { return ldiv(__i, __j); }
_GLIBCXX_END_NAMESPACE
_GLIBCXX_END_NAMESPACE
#if _GLIBCXX_USE_C99
#if _GLIBCXX_USE_C99
#undef _Exit
#undef _Exit
#undef llabs
#undef llabs
#undef lldiv
#undef lldiv
#undef atoll
#undef atoll
#undef strtoll
#undef strtoll
#undef strtoull
#undef strtoull
#undef strtof
#undef strtof
#undef strtold
#undef strtold
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
_GLIBCXX_BEGIN_NAMESPACE(__gnu_cxx)
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
  using ::lldiv_t;
  using ::lldiv_t;
#endif
#endif
#if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
#if _GLIBCXX_USE_C99_CHECK || _GLIBCXX_USE_C99_DYNAMIC
  extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN;
  extern "C" void (_Exit)(int) throw () _GLIBCXX_NORETURN;
#endif
#endif
#if !_GLIBCXX_USE_C99_DYNAMIC
#if !_GLIBCXX_USE_C99_DYNAMIC
  using ::_Exit;
  using ::_Exit;
#endif
#endif
  inline long long
  inline long long
  abs(long long __x) { return __x >= 0 ? __x : -__x; }
  abs(long long __x) { return __x >= 0 ? __x : -__x; }
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
  using ::llabs;
  using ::llabs;
  inline lldiv_t
  inline lldiv_t
  div(long long __n, long long __d)
  div(long long __n, long long __d)
  { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; }
  { lldiv_t __q; __q.quot = __n / __d; __q.rem = __n % __d; return __q; }
  using ::lldiv;
  using ::lldiv;
#endif
#endif
#if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
#if _GLIBCXX_USE_C99_LONG_LONG_CHECK || _GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
  extern "C" long long int (atoll)(const char *) throw ();
  extern "C" long long int (atoll)(const char *) throw ();
  extern "C" long long int
  extern "C" long long int
    (strtoll)(const char * restrict, char ** restrict, int) throw ();
    (strtoll)(const char * restrict, char ** restrict, int) throw ();
  extern "C" unsigned long long int
  extern "C" unsigned long long int
    (strtoull)(const char * restrict, char ** restrict, int) throw ();
    (strtoull)(const char * restrict, char ** restrict, int) throw ();
#endif
#endif
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
  using ::atoll;
  using ::atoll;
  using ::strtoll;
  using ::strtoll;
  using ::strtoull;
  using ::strtoull;
#endif
#endif
  using ::strtof;
  using ::strtof;
  using ::strtold;
  using ::strtold;
_GLIBCXX_END_NAMESPACE
_GLIBCXX_END_NAMESPACE
_GLIBCXX_BEGIN_NAMESPACE(std)
_GLIBCXX_BEGIN_NAMESPACE(std)
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
  using ::__gnu_cxx::lldiv_t;
  using ::__gnu_cxx::lldiv_t;
#endif
#endif
  using ::__gnu_cxx::_Exit;
  using ::__gnu_cxx::_Exit;
  using ::__gnu_cxx::abs;
  using ::__gnu_cxx::abs;
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
#if !_GLIBCXX_USE_C99_LONG_LONG_DYNAMIC
  using ::__gnu_cxx::llabs;
  using ::__gnu_cxx::llabs;
  using ::__gnu_cxx::div;
  using ::__gnu_cxx::div;
  using ::__gnu_cxx::lldiv;
  using ::__gnu_cxx::lldiv;
#endif
#endif
  using ::__gnu_cxx::atoll;
  using ::__gnu_cxx::atoll;
  using ::__gnu_cxx::strtof;
  using ::__gnu_cxx::strtof;
  using ::__gnu_cxx::strtoll;
  using ::__gnu_cxx::strtoll;
  using ::__gnu_cxx::strtoull;
  using ::__gnu_cxx::strtoull;
  using ::__gnu_cxx::strtold;
  using ::__gnu_cxx::strtold;
_GLIBCXX_END_NAMESPACE
_GLIBCXX_END_NAMESPACE
#endif // _GLIBCXX_USE_C99
#endif // _GLIBCXX_USE_C99
#endif // !_GLIBCXX_HOSTED
#endif // !_GLIBCXX_HOSTED
#endif
#endif
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.