stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r497889 - /incubator/stdcxx/trunk/include/ansi/_cstdlib.h
Date Fri, 19 Jan 2007 18:00:47 GMT
Author: sebor
Date: Fri Jan 19 10:00:46 2007
New Revision: 497889

URL: http://svn.apache.org/viewvc?view=rev&rev=497889
Log:
2007-01-19  Martin Sebor  <sebor@roguewave.com>

	STDCXX-323
	* _cstdlib.h (abs, div): Added overloads for long.

Modified:
    incubator/stdcxx/trunk/include/ansi/_cstdlib.h

Modified: incubator/stdcxx/trunk/include/ansi/_cstdlib.h
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/_cstdlib.h?view=diff&rev=497889&r1=497888&r2=497889
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/_cstdlib.h (original)
+++ incubator/stdcxx/trunk/include/ansi/_cstdlib.h Fri Jan 19 10:00:46 2007
@@ -3,20 +3,27 @@
  *
  * cstdlib - C++ Standard library interface to the ANSI C header stdlib.h
  *
- * $Id: //stdlib/dev/include/ansi/_cstdlib.h#9 $
+ * $Id$
  *
  ***************************************************************************
  *
- * Copyright (c) 1994-2005 Quovadx,  Inc., acting through its  Rogue Wave
- * Software division. Licensed under the Apache License, Version 2.0 (the
- * "License");  you may  not use this file except  in compliance with the
- * License.    You    may   obtain   a   copy   of    the   License    at
- * http://www.apache.org/licenses/LICENSE-2.0.    Unless   required    by
- * applicable law  or agreed to  in writing,  software  distributed under
- * the License is distributed on an "AS IS" BASIS,  WITHOUT WARRANTIES OR
- * CONDITIONS OF  ANY KIND, either  express or implied.  See  the License
- * for the specific language governing permissions  and limitations under
- * the License.
+ * Licensed to the Apache Software  Foundation (ASF) under one or more
+ * contributor  license agreements.  See  the NOTICE  file distributed
+ * with  this  work  for  additional information  regarding  copyright
+ * ownership.   The ASF  licenses this  file to  you under  the Apache
+ * License, Version  2.0 (the  "License"); you may  not use  this file
+ * except in  compliance with the License.   You may obtain  a copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the  License is distributed on an  "AS IS" BASIS,
+ * WITHOUT  WARRANTIES OR CONDITIONS  OF ANY  KIND, either  express or
+ * implied.   See  the License  for  the  specific language  governing
+ * permissions and limitations under the License.
+ *
+ * Copyright 2001-2006 Rogue Wave Software.
  * 
  **************************************************************************/
 
@@ -130,6 +137,18 @@
     {
         return _RWSTD_C::qsort (__base, __n, __size,
                                _RWSTD_REINTERPRET_CAST (__rw_compar_t, __cmp));
+    }
+
+    inline long
+    abs (long __x)
+    {
+        return labs (__x);
+    }
+
+    inline ldiv_t
+    div (long __x, long __y)
+    {
+        return ldiv (__x, __y);
     }
 
     }   // extern "C++"



Mime
View raw message