mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-26 16:51:01 +08:00
multiway_merge.h: Uglify equally_split and equally_split_point throughout.
2011-04-24 Paolo Carlini <paolo.carlini@oracle.com> * include/parallel/multiway_merge.h: Uglify equally_split and equally_split_point throughout. * include/parallel/par_loop.h: Likewise. * include/parallel/equally_split.h: Likewise. * include/parallel/set_operations.h: Likewise. * include/parallel/unique_copy.h: Likewise. * include/parallel/multiway_mergesort.h: Likewise. * include/parallel/search.h: Likewise. * include/parallel/partial_sum.h: Likewise. * include/parallel/find.h: Likewise. From-SVN: r172923
This commit is contained in:
parent
ed4c109ee8
commit
6b77089f40
@ -1,10 +1,23 @@
|
||||
2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
* include/parallel/multiway_merge.h: Uglify equally_split
|
||||
and equally_split_point throughout.
|
||||
* include/parallel/par_loop.h: Likewise.
|
||||
* include/parallel/equally_split.h: Likewise.
|
||||
* include/parallel/set_operations.h: Likewise.
|
||||
* include/parallel/unique_copy.h: Likewise.
|
||||
* include/parallel/multiway_mergesort.h: Likewise.
|
||||
* include/parallel/search.h: Likewise.
|
||||
* include/parallel/partial_sum.h: Likewise.
|
||||
* include/parallel/find.h: Likewise.
|
||||
|
||||
2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
|
||||
|
||||
* doc/xml/manual/parallel_mode.xml: Fix link to libgomp online
|
||||
documentation. Expand link text.
|
||||
|
||||
2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
|
||||
|
||||
|
||||
* libsupc++/cxxabi.h: Adjust link to FAQ entry.
|
||||
|
||||
2011-04-22 François Dumont <francois.cppdevs@free.fr>
|
||||
@ -37,7 +50,7 @@
|
||||
(ref(const A&&), cref(const A&&): Define as deleted.
|
||||
* include/std/future (async): Simplify SFINAE and use result_of to
|
||||
support pointer to member.
|
||||
* testsuite/20_util/reference_wrapper/invoke.cc: Test pointer to
|
||||
* testsuite/20_util/reference_wrapper/invoke.cc: Test pointer to
|
||||
member.
|
||||
* testsuite/20_util/reference_wrapper/24803.cc: Likewise.
|
||||
* testsuite/20_util/reference_wrapper/typedefs.cc: Test for types
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -45,8 +45,8 @@ namespace __gnu_parallel
|
||||
* @returns End of __splitter sequence, i.e. @c __s+__num_threads+1 */
|
||||
template<typename _DifferenceType, typename _OutputIterator>
|
||||
_OutputIterator
|
||||
equally_split(_DifferenceType __n, _ThreadIndex __num_threads,
|
||||
_OutputIterator __s)
|
||||
__equally_split(_DifferenceType __n, _ThreadIndex __num_threads,
|
||||
_OutputIterator __s)
|
||||
{
|
||||
_DifferenceType __chunk_length = __n / __num_threads;
|
||||
_DifferenceType __num_longer_chunks = __n % __num_threads;
|
||||
@ -71,9 +71,9 @@ namespace __gnu_parallel
|
||||
* @returns splitting point */
|
||||
template<typename _DifferenceType>
|
||||
_DifferenceType
|
||||
equally_split_point(_DifferenceType __n,
|
||||
_ThreadIndex __num_threads,
|
||||
_ThreadIndex __thread_no)
|
||||
__equally_split_point(_DifferenceType __n,
|
||||
_ThreadIndex __num_threads,
|
||||
_ThreadIndex __thread_no)
|
||||
{
|
||||
_DifferenceType __chunk_length = __n / __num_threads;
|
||||
_DifferenceType __num_longer_chunks = __n % __num_threads;
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -118,7 +118,7 @@ namespace __gnu_parallel
|
||||
{
|
||||
__num_threads = omp_get_num_threads();
|
||||
__borders = new _DifferenceType[__num_threads + 1];
|
||||
equally_split(__length, __num_threads, __borders);
|
||||
__equally_split(__length, __num_threads, __borders);
|
||||
} //single
|
||||
|
||||
_ThreadIndex __iam = omp_get_thread_num();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -1139,7 +1139,7 @@ namespace __gnu_parallel
|
||||
|
||||
_DifferenceType* __borders =
|
||||
new _DifferenceType[__num_threads + 1];
|
||||
equally_split(__length, __num_threads, __borders);
|
||||
__equally_split(__length, __num_threads, __borders);
|
||||
|
||||
for (_ThreadIndex __s = 0; __s < (__num_threads - 1); ++__s)
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -105,8 +105,8 @@ namespace __gnu_parallel
|
||||
|
||||
_DifferenceType* __es = new _DifferenceType[__num_samples + 2];
|
||||
|
||||
equally_split(__sd->_M_starts[__iam + 1] - __sd->_M_starts[__iam],
|
||||
__num_samples + 1, __es);
|
||||
__equally_split(__sd->_M_starts[__iam + 1] - __sd->_M_starts[__iam],
|
||||
__num_samples + 1, __es);
|
||||
|
||||
for (_DifferenceType __i = 0; __i < __num_samples; ++__i)
|
||||
::new(&(__sd->_M_samples[__iam * __num_samples + __i]))
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -95,8 +95,8 @@ namespace __gnu_parallel
|
||||
(::operator new(sizeof(_Result)));
|
||||
|
||||
_DifferenceType
|
||||
__start = equally_split_point(__length, __num_threads, __iam),
|
||||
__stop = equally_split_point(__length, __num_threads, __iam + 1);
|
||||
__start = __equally_split_point(__length, __num_threads, __iam),
|
||||
__stop = __equally_split_point(__length, __num_threads, __iam + 1);
|
||||
|
||||
if (__start < __stop)
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -124,7 +124,7 @@ namespace __gnu_parallel
|
||||
__borders = new _DifferenceType[__num_threads + 2];
|
||||
|
||||
if (__s.partial_sum_dilation == 1.0f)
|
||||
equally_split(__n, __num_threads + 1, __borders);
|
||||
__equally_split(__n, __num_threads + 1, __borders);
|
||||
else
|
||||
{
|
||||
_DifferenceType __first_part_length =
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -120,7 +120,7 @@ namespace __gnu_parallel
|
||||
{
|
||||
__num_threads = omp_get_num_threads();
|
||||
__splitters = new _DifferenceType[__num_threads + 1];
|
||||
equally_split(__input_length, __num_threads, __splitters);
|
||||
__equally_split(__input_length, __num_threads, __splitters);
|
||||
}
|
||||
|
||||
_ThreadIndex __iam = omp_get_thread_num();
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -383,7 +383,7 @@ namespace __gnu_parallel
|
||||
__num_threads = omp_get_num_threads();
|
||||
|
||||
__borders = new _DifferenceType[__num_threads + 2];
|
||||
equally_split(__size, __num_threads + 1, __borders);
|
||||
__equally_split(__size, __num_threads + 1, __borders);
|
||||
__block_begins = new _IteratorPair[__num_threads + 1];
|
||||
// Very __start.
|
||||
__block_begins[0] = std::make_pair(__begin1, __begin2);
|
||||
|
@ -1,6 +1,6 @@
|
||||
// -*- C++ -*-
|
||||
|
||||
// Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
|
||||
// Copyright (C) 2007, 2008, 2009, 2010, 2011 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
|
||||
@ -74,7 +74,7 @@ namespace __gnu_parallel
|
||||
{
|
||||
__num_threads = omp_get_num_threads();
|
||||
__borders = new _DifferenceType[__num_threads + 2];
|
||||
equally_split(__size, __num_threads + 1, __borders);
|
||||
__equally_split(__size, __num_threads + 1, __borders);
|
||||
__counter = new _DifferenceType[__num_threads + 1];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user