]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
base.h (decode2): Rename to __decode2.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 12 Jan 2010 00:51:50 +0000 (00:51 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 12 Jan 2010 00:51:50 +0000 (00:51 +0000)
2010-01-11  Paolo Carlini  <paolo.carlini@oracle.com>

* include/parallel/base.h (decode2): Rename to __decode2.
(binder2nd): Likewise to __binder2nd.
* include/parallel/quicksort.h: Adjust callers.
* include/parallel/balanced_quicksort.h: Likewise.
* include/parallel/partition.h: Likewise.
* include/parallel/queue.h: Likewise.

* include/parallel/algo.h: Qualify with std:: binder2nd use.

From-SVN: r155825

libstdc++-v3/ChangeLog
libstdc++-v3/include/parallel/algo.h
libstdc++-v3/include/parallel/balanced_quicksort.h
libstdc++-v3/include/parallel/base.h
libstdc++-v3/include/parallel/partition.h
libstdc++-v3/include/parallel/queue.h
libstdc++-v3/include/parallel/quicksort.h

index e136e64e2a24965bd9c17160395b92cfd1909102..6c3a3c59a304cb57b5905ac668b15c7a8b2a7f31 100644 (file)
@@ -1,3 +1,14 @@
+2010-01-11  Paolo Carlini  <paolo.carlini@oracle.com>
+
+       * include/parallel/base.h (decode2): Rename to __decode2.
+       (binder2nd): Likewise to __binder2nd.
+       * include/parallel/quicksort.h: Adjust callers.
+       * include/parallel/balanced_quicksort.h: Likewise.
+       * include/parallel/partition.h: Likewise.
+       * include/parallel/queue.h: Likewise.
+
+       * include/parallel/algo.h: Qualify with std:: binder2nd use.
+
 2010-01-10  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/debug/string (basic_string<>::basic_string(basic_string&&),
index 8d685b5c946452840afbbc742f4d89ba655f8de4..04953e8132cc49c3a44f6be709881af780e41fb2 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 //
 // 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 terms
@@ -150,7 +150,7 @@ namespace __parallel
 
       if (_GLIBCXX_PARALLEL_CONDITION(true))
         {
-          binder2nd<__gnu_parallel::_EqualTo<_ValueType, const _Tp&> >
+         std::binder2nd<__gnu_parallel::_EqualTo<_ValueType, const _Tp&> >
             __comp(__gnu_parallel::_EqualTo<_ValueType, const _Tp&>(), __val);
           return __gnu_parallel::__find_template(
                    __begin, __end, __begin, __comp,
index 6a6d03f242315b060a4e67dfc411cc1ffc3393f2..0a2813654b286317e89c3b44b1975c9653ba3325 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 //
 // 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 terms
@@ -135,7 +135,7 @@ namespace __gnu_parallel
        std::swap(*__pivot_pos, *(__end - 1));
       __pivot_pos = __end - 1;
 
-      __gnu_parallel::binder2nd<_Compare, _ValueType, _ValueType, bool>
+      __gnu_parallel::__binder2nd<_Compare, _ValueType, _ValueType, bool>
        __pred(__comp, *__pivot_pos);
 
       // Divide, returning __end - __begin - 1 in the worst case.
@@ -287,7 +287,7 @@ namespace __gnu_parallel
                std::swap(*__pivot_pos, *(__end - 1));
               __pivot_pos = __end - 1;
 
-              __gnu_parallel::binder2nd
+              __gnu_parallel::__binder2nd
                <_Compare, _ValueType, _ValueType, bool>
                __pred(__comp, *__pivot_pos);
 
index 75a8b75bbaa7994b475d8e32bbab731a0423b252..a219f7c475580e8366be74461801a364ae83eb61 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 //
 // 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 terms
@@ -113,7 +113,7 @@ namespace __gnu_parallel
    *  @param __b Second integer, to be encoded in the least-significant
    *  @c _CASable_bits/2 bits.
    *  @return value encoding @c __a and @c __b.
-   *  @see decode2
+   *  @see __decode2
    */
   inline _CASable
   __encode2(int __a, int __b)     //must all be non-negative, actually
@@ -130,7 +130,7 @@ namespace __gnu_parallel
    *  @see __encode2
    */
   inline void
-  decode2(_CASable __x, int& __a, int& __b)
+  __decode2(_CASable __x, int& __a, int& __b)
   {
     __a = (int)((__x >> (_CASable_bits / 2)) & _CASable_mask);
     __b = (int)((__x >>               0 ) & _CASable_mask);
@@ -217,7 +217,7 @@ namespace __gnu_parallel
    */
   template<typename _Operation, typename _FirstArgumentType,
           typename _SecondArgumentType, typename _ResultType>
-    class binder2nd
+    class __binder2nd
     : public std::unary_function<_FirstArgumentType, _ResultType>
     {
     protected:
@@ -225,7 +225,7 @@ namespace __gnu_parallel
       _SecondArgumentType _M_value;
 
     public:
-      binder2nd(const _Operation& __x, const _SecondArgumentType& __y)
+      __binder2nd(const _Operation& __x, const _SecondArgumentType& __y)
       : _M_op(__x), _M_value(__y) { }
 
       _ResultType
index 52993c86c957abc1c051711a38417be1c4ea849c..6a9c4aceaa632833b6cdd94d4b9cfcb83af6f652 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 //
 // 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 terms
@@ -367,7 +367,7 @@ namespace __gnu_parallel
           // __gnu_parallel::_Lexicographic<S, int,
          //                                __gnu_parallel::_Less<S, S> >
           // __pivot_pos == std::pair<S, int>*
-          __gnu_parallel::binder2nd<_Compare, _ValueType, _ValueType, bool>
+          __gnu_parallel::__binder2nd<_Compare, _ValueType, _ValueType, bool>
             __pred(__comp, *__pivot_pos);
 
           // Divide, leave pivot unchanged in last place.
index 28c78600860abfa5c91c4c83d3f95aeedb221c6f..03c1c78bb2cdb1b4822411e9341de321e90dcdb4 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 //
 // 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 terms
@@ -84,7 +84,7 @@ namespace __gnu_parallel
       {
         _CASable __former_borders = _M_borders;
         int __former_front, __former_back;
-        decode2(__former_borders, __former_front, __former_back);
+        __decode2(__former_borders, __former_front, __former_back);
         *(_M_base + __former_front % _M_max_size) = __t;
 #if _GLIBCXX_ASSERTIONS
         // Otherwise: front - back > _M_max_size eventually.
@@ -101,7 +101,7 @@ namespace __gnu_parallel
       {
         int __former_front, __former_back;
 #pragma omp flush
-        decode2(_M_borders, __former_front, __former_back);
+        __decode2(_M_borders, __former_front, __former_back);
         while (__former_front > __former_back)
           {
             // Chance.
@@ -116,7 +116,7 @@ namespace __gnu_parallel
                 return true;
               }
 #pragma omp flush
-            decode2(_M_borders, __former_front, __former_back);
+            __decode2(_M_borders, __former_front, __former_back);
           }
         return false;
       }
@@ -128,7 +128,7 @@ namespace __gnu_parallel
       {
         int __former_front, __former_back;
 #pragma omp flush
-        decode2(_M_borders, __former_front, __former_back);
+        __decode2(_M_borders, __former_front, __former_back);
         while (__former_front > __former_back)
           {
             // Chance.
@@ -143,7 +143,7 @@ namespace __gnu_parallel
                 return true;
               }
 #pragma omp flush
-            decode2(_M_borders, __former_front, __former_back);
+            __decode2(_M_borders, __former_front, __former_back);
           }
         return false;
       }
index 508c3c1763ceaa99d26f52c89b208867d4132826..1884eb867fada377915235ce1b883fefedc99eb1 100644 (file)
@@ -1,6 +1,6 @@
 // -*- C++ -*-
 
-// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
 //
 // 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 terms
@@ -77,7 +77,7 @@ namespace __gnu_parallel
 
       _ValueType& __pivot = __samples[__pivot_rank * __num_samples / __n];
 
-      __gnu_parallel::binder2nd<_Compare, _ValueType, _ValueType, bool>
+      __gnu_parallel::__binder2nd<_Compare, _ValueType, _ValueType, bool>
         __pred(__comp, __pivot);
       _DifferenceType __split = __parallel_partition(__begin, __end,
                                                     __pred, __num_threads);