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/] [cmath] - 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) 2000, 2002, 2003, 2009 Free Software Foundation, Inc.
// Copyright (C) 2000, 2002, 2003, 2009 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
// .
// .
//
//
// ISO C++ 14882: 26.5  C library
// ISO C++ 14882: 26.5  C library
//
//
#ifndef _GLIBCXX_CMATH
#ifndef _GLIBCXX_CMATH
#define _GLIBCXX_CMATH 1
#define _GLIBCXX_CMATH 1
#pragma GCC system_header
#pragma GCC system_header
#include 
#include 
#include_next 
#include_next 
// 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 abs
#undef abs
#undef div
#undef div
#undef acos
#undef acos
#undef asin
#undef asin
#undef atan
#undef atan
#undef atan2
#undef atan2
#undef ceil
#undef ceil
#undef cos
#undef cos
#undef cosh
#undef cosh
#undef exp
#undef exp
#undef fabs
#undef fabs
#undef floor
#undef floor
#undef fmod
#undef fmod
#undef frexp
#undef frexp
#undef ldexp
#undef ldexp
#undef log
#undef log
#undef log10
#undef log10
#undef modf
#undef modf
#undef pow
#undef pow
#undef sin
#undef sin
#undef sinh
#undef sinh
#undef sqrt
#undef sqrt
#undef tan
#undef tan
#undef tanh
#undef tanh
#undef fpclassify
#undef fpclassify
#undef isfinite
#undef isfinite
#undef isinf
#undef isinf
#undef isnan
#undef isnan
#undef isnormal
#undef isnormal
#undef signbit
#undef signbit
#undef isgreater
#undef isgreater
#undef isgreaterequal
#undef isgreaterequal
#undef isless
#undef isless
#undef islessequal
#undef islessequal
#undef islessgreater
#undef islessgreater
#undef isunordered
#undef isunordered
namespace std
namespace std
{
{
  inline double
  inline double
  abs(double __x)
  abs(double __x)
  { return __builtin_fabs(__x); }
  { return __builtin_fabs(__x); }
  inline float
  inline float
  abs(float __x)
  abs(float __x)
  { return __builtin_fabsf(__x); }
  { return __builtin_fabsf(__x); }
  inline long double
  inline long double
  abs(long double __x)
  abs(long double __x)
  { return __builtin_fabsl(__x); }
  { return __builtin_fabsl(__x); }
#if _GLIBCXX_HAVE_MODFF
#if _GLIBCXX_HAVE_MODFF
  inline float
  inline float
  modf(float __x, float* __iptr) { return modff(__x, __iptr); }
  modf(float __x, float* __iptr) { return modff(__x, __iptr); }
#else
#else
  inline float
  inline float
  modf(float __x, float* __iptr)
  modf(float __x, float* __iptr)
  {
  {
    double __tmp;
    double __tmp;
    double __res = modf(static_cast(__x), &__tmp);
    double __res = modf(static_cast(__x), &__tmp);
    *__iptr = static_cast(__tmp);
    *__iptr = static_cast(__tmp);
    return __res;
    return __res;
  }
  }
#endif
#endif
#if _GLIBCXX_HAVE_MODFL
#if _GLIBCXX_HAVE_MODFL
  inline long double
  inline long double
  modf(long double __x, long double* __iptr) { return modfl(__x, __iptr); }
  modf(long double __x, long double* __iptr) { return modfl(__x, __iptr); }
#else
#else
  inline long double
  inline long double
  modf(long double __x, long double* __iptr)
  modf(long double __x, long double* __iptr)
  {
  {
    double __tmp;
    double __tmp;
    double __res = modf(static_cast(__x), &__tmp);
    double __res = modf(static_cast(__x), &__tmp);
    * __iptr = static_cast(__tmp);
    * __iptr = static_cast(__tmp);
    return __res;
    return __res;
  }
  }
#endif
#endif
}
}
#endif
#endif
 
 

powered by: WebSVN 2.1.0

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