Re:How many reversible integer operations do you know?
by Retric on Sunday January 14, 2018 @01:17PM
(#16145417)
You can cut this in half because the inputs always map to different outputs and nothing repeats. So, after specifying the first mapping 0 > k, 1 can map to 2^32 -1 possible numbers, 2 can map to 2^32 - 2 numbers etc, and you can skip mapping the last number as only one possibility is left.
LUT's would be vastly faster though.