You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

105 lines
3.5KB

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