[PATCH][libstdc++-v3 parallel mode] Correct part lengths calculation for parallel partial_sum

Johannes Singler singler@kit.edu
Tue Jun 8 07:22:00 GMT 2010


This patch corrects the calculation of the part lengths for parallel
partial_sum, leading to the expected behavior for
partial_sum_dilation!=1, and thus better performance.

Tested x86_64-unknown-linux-gnu: No regressions.

Please approve for mainline.

2010-06-08  Johannes Singler  <singler@kit.edu>

        * include/parallel/partial_sum.h
        (__parallel_partial_sum_linear):
        Correctly calculate part lengths for partial_sum_dilation!=1.

Johannes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: partial_sum_correct_dilation_4_6.patch
Type: text/x-patch
Size: 868 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20100608/c1fc5aff/attachment.bin>


More information about the Libstdc++ mailing list