xref: /dflybsd-src/contrib/gcc-4.7/libstdc++-v3/include/parallel/features.h (revision 04febcfb30580676d3e95f58a16c5137ee478b32)
1*e4b17023SJohn Marino // -*- C++ -*-
2*e4b17023SJohn Marino 
3*e4b17023SJohn Marino // Copyright (C) 2007, 2009 Free Software Foundation, Inc.
4*e4b17023SJohn Marino //
5*e4b17023SJohn Marino // This file is part of the GNU ISO C++ Library.  This library is free
6*e4b17023SJohn Marino // software; you can redistribute it and/or modify it under the terms
7*e4b17023SJohn Marino // of the GNU General Public License as published by the Free Software
8*e4b17023SJohn Marino // Foundation; either version 3, or (at your option) any later
9*e4b17023SJohn Marino // version.
10*e4b17023SJohn Marino 
11*e4b17023SJohn Marino // This library is distributed in the hope that it will be useful, but
12*e4b17023SJohn Marino // WITHOUT ANY WARRANTY; without even the implied warranty of
13*e4b17023SJohn Marino // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14*e4b17023SJohn Marino // General Public License for more details.
15*e4b17023SJohn Marino 
16*e4b17023SJohn Marino // Under Section 7 of GPL version 3, you are granted additional
17*e4b17023SJohn Marino // permissions described in the GCC Runtime Library Exception, version
18*e4b17023SJohn Marino // 3.1, as published by the Free Software Foundation.
19*e4b17023SJohn Marino 
20*e4b17023SJohn Marino // You should have received a copy of the GNU General Public License and
21*e4b17023SJohn Marino // a copy of the GCC Runtime Library Exception along with this program;
22*e4b17023SJohn Marino // see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
23*e4b17023SJohn Marino // <http://www.gnu.org/licenses/>.
24*e4b17023SJohn Marino 
25*e4b17023SJohn Marino /** @file parallel/features.h
26*e4b17023SJohn Marino  *  @brief Defines on whether to include algorithm variants.
27*e4b17023SJohn Marino  *
28*e4b17023SJohn Marino  *  Less variants reduce executable size and compile time.
29*e4b17023SJohn Marino  *  This file is a GNU parallel extension to the Standard C++ Library.
30*e4b17023SJohn Marino  */
31*e4b17023SJohn Marino 
32*e4b17023SJohn Marino // Written by Johannes Singler.
33*e4b17023SJohn Marino 
34*e4b17023SJohn Marino #ifndef _GLIBCXX_PARALLEL_FEATURES_H
35*e4b17023SJohn Marino #define _GLIBCXX_PARALLEL_FEATURES_H 1
36*e4b17023SJohn Marino 
37*e4b17023SJohn Marino #ifndef _GLIBCXX_MERGESORT
38*e4b17023SJohn Marino /** @def _GLIBCXX_MERGESORT
39*e4b17023SJohn Marino  *  @brief Include parallel multi-way mergesort.
40*e4b17023SJohn Marino  *  @see __gnu_parallel::_Settings::sort_algorithm */
41*e4b17023SJohn Marino #define _GLIBCXX_MERGESORT 1
42*e4b17023SJohn Marino #endif
43*e4b17023SJohn Marino 
44*e4b17023SJohn Marino #ifndef _GLIBCXX_QUICKSORT
45*e4b17023SJohn Marino /** @def _GLIBCXX_QUICKSORT
46*e4b17023SJohn Marino  *  @brief Include parallel unbalanced quicksort.
47*e4b17023SJohn Marino  *  @see __gnu_parallel::_Settings::sort_algorithm */
48*e4b17023SJohn Marino #define _GLIBCXX_QUICKSORT 1
49*e4b17023SJohn Marino #endif
50*e4b17023SJohn Marino 
51*e4b17023SJohn Marino #ifndef _GLIBCXX_BAL_QUICKSORT
52*e4b17023SJohn Marino /** @def _GLIBCXX_BAL_QUICKSORT
53*e4b17023SJohn Marino  *  @brief Include parallel dynamically load-balanced quicksort.
54*e4b17023SJohn Marino  *  @see __gnu_parallel::_Settings::sort_algorithm */
55*e4b17023SJohn Marino #define _GLIBCXX_BAL_QUICKSORT 1
56*e4b17023SJohn Marino #endif
57*e4b17023SJohn Marino 
58*e4b17023SJohn Marino #ifndef _GLIBCXX_FIND_GROWING_BLOCKS
59*e4b17023SJohn Marino /** @brief Include the growing blocks variant for std::find.
60*e4b17023SJohn Marino  *  @see __gnu_parallel::_Settings::find_algorithm */
61*e4b17023SJohn Marino #define _GLIBCXX_FIND_GROWING_BLOCKS 1
62*e4b17023SJohn Marino #endif
63*e4b17023SJohn Marino 
64*e4b17023SJohn Marino #ifndef _GLIBCXX_FIND_CONSTANT_SIZE_BLOCKS
65*e4b17023SJohn Marino /** @brief Include the equal-sized blocks variant for std::find.
66*e4b17023SJohn Marino  *  @see __gnu_parallel::_Settings::find_algorithm */
67*e4b17023SJohn Marino #define _GLIBCXX_FIND_CONSTANT_SIZE_BLOCKS 1
68*e4b17023SJohn Marino #endif
69*e4b17023SJohn Marino 
70*e4b17023SJohn Marino #ifndef _GLIBCXX_FIND_EQUAL_SPLIT
71*e4b17023SJohn Marino /** @def _GLIBCXX_FIND_EQUAL_SPLIT
72*e4b17023SJohn Marino  *  @brief Include the equal splitting variant for std::find.
73*e4b17023SJohn Marino  *  @see __gnu_parallel::_Settings::find_algorithm */
74*e4b17023SJohn Marino #define _GLIBCXX_FIND_EQUAL_SPLIT 1
75*e4b17023SJohn Marino #endif
76*e4b17023SJohn Marino 
77*e4b17023SJohn Marino 
78*e4b17023SJohn Marino #ifndef _GLIBCXX_TREE_INITIAL_SPLITTING
79*e4b17023SJohn Marino /** @def _GLIBCXX_TREE_INITIAL_SPLITTING
80*e4b17023SJohn Marino  *  @brief Include the initial splitting variant for
81*e4b17023SJohn Marino  *  _Rb_tree::insert_unique(_IIter beg, _IIter __end).
82*e4b17023SJohn Marino  *  @see __gnu_parallel::_Rb_tree */
83*e4b17023SJohn Marino #define _GLIBCXX_TREE_INITIAL_SPLITTING 1
84*e4b17023SJohn Marino #endif
85*e4b17023SJohn Marino 
86*e4b17023SJohn Marino #ifndef _GLIBCXX_TREE_DYNAMIC_BALANCING
87*e4b17023SJohn Marino /** @def _GLIBCXX_TREE_DYNAMIC_BALANCING
88*e4b17023SJohn Marino  *  @brief Include the dynamic balancing variant for
89*e4b17023SJohn Marino  *  _Rb_tree::insert_unique(_IIter beg, _IIter __end).
90*e4b17023SJohn Marino  *  @see __gnu_parallel::_Rb_tree */
91*e4b17023SJohn Marino #define _GLIBCXX_TREE_DYNAMIC_BALANCING 1
92*e4b17023SJohn Marino #endif
93*e4b17023SJohn Marino 
94*e4b17023SJohn Marino #ifndef _GLIBCXX_TREE_FULL_COPY
95*e4b17023SJohn Marino /** @def _GLIBCXX_TREE_FULL_COPY
96*e4b17023SJohn Marino  *  @brief In order to sort the input sequence of
97*e4b17023SJohn Marino  *  _Rb_tree::insert_unique(_IIter beg, _IIter __end) a
98*e4b17023SJohn Marino  *  full copy of the input elements is done.
99*e4b17023SJohn Marino  *  @see __gnu_parallel::_Rb_tree */
100*e4b17023SJohn Marino #define _GLIBCXX_TREE_FULL_COPY 1
101*e4b17023SJohn Marino #endif
102*e4b17023SJohn Marino 
103*e4b17023SJohn Marino 
104*e4b17023SJohn Marino #endif /* _GLIBCXX_PARALLEL_FEATURES_H */
105