Parallel
aa0900.txt
Associated article: Algorithm Alley
Tags: Parallel
Published source code accompanying the article by Ron Gutman in which he presents techniques for exploiting the parallelism of bitwise operations to speed up some kinds of 64-bit computing tasks.
Algorithm Alley
by Ron Gutman
Listing One
public class BitLinear {
public static long reverse (long bits) {
long rl = 0;
for (int i = 0; i < 64; i++) {
rl = (rl << 1) + (bits & 1);
bits = bits >>> 1;
}
return rl;
}
public static int ...


