hg: lambda/collections/jdk: Initial load of parallelSort support in FJUtils. Support for byte -> int, plus

"Zdeněk Troníček" tronicek at fit.cvut.cz
Sun Feb 13 22:12:05 PST 2011


+ private static void prepareSubArray(int[] a, int fromIndex, int toIndex,
int m) {
+ for (int i = 0; i < fromIndex; i++) {
+ a[i] = 0xBABA;
+ }
+ for (int i = fromIndex; i < toIndex; i++) {
+ a[i] = -i + m;
+ }
+ for (int i = toIndex; i < a.length; i++) {
+ a[i] = 0xDEDA;
+ }
+ }

Funny. BABA means grandmother in Czech language (however it is a little
pejorative) and DEDA means grandfather. Nice code.
For those who are curious: not all the words in Czech are in hexadecimal.
For example, mother is MAMA and father is TATA.

Z.
-- 
Zdenek Tronicek
FIT CTU in Prague


david.holmes at oracle.com napsal(a):
> Changeset: 215458300e18
> Author:    dholmes
> Date:      2011-02-14 13:16 +1000
> URL:
> http://hg.openjdk.java.net/lambda/collections/jdk/rev/215458300e18
>
> Initial load of parallelSort support in FJUtils. Support for byte -> int,
> plus
> Comparable, and Object+Comparator
> ParallelSorting functional test is a mirror of the Arrays.sort Sorting
> test
>
> + src/share/classes/java/util/concurrent/ForkJoinUtils.java
> + test/java/util/concurrent/forkjoin/ParallelSorting.java
>
>
>



More information about the lambda-dev mailing list