2008-04-23 Johannes Singler <singler@ira.uka.de>
authorJohannes Singler <singler@ira.uka.de>
Wed, 23 Apr 2008 07:20:58 +0000 (07:20 +0000)
committerJohannes Singler <singler@gcc.gnu.org>
Wed, 23 Apr 2008 07:20:58 +0000 (07:20 +0000)
commit214ece2920ee4e27aca97c1fef963d1d0f61921e
treee2955acdc0c808a97b62265e1d9f4bab5dd6ae3b
parent7edc89d4c168867a240e54533b2214bbc2a1987c
2008-04-23  Johannes Singler  <singler@ira.uka.de>

        * include/parallel/multiway_merge.h
        (multiway_merge_loser_tree):
        Leave checks to callers, add precondition instead.
        (multiway_merge_loser_tree_unguarded): Likewise.
        (multiway_merge_loser_tree_sentinel): Likewise.
        (sequential_multiway_merge): Added checks for total length 0.
        (parallel_multiway_merge): Skip empty sequences.
        (multiway_merge, all variants):
        Remove temporary variable, return directly.
        (stable_multiway_merge, all variants): Likewise.
        (multiway_merge_sentinels, all variants):  Likewise.
        (stable_multiway_merge_sentinels, all variants): Likewise.
        * include/parallel/multiseq_selection.h
        (multiseq_partition): More detailed assertions.

From-SVN: r134580
libstdc++-v3/ChangeLog
libstdc++-v3/include/parallel/multiseq_selection.h
libstdc++-v3/include/parallel/multiway_merge.h