I've tried this JPS library out and its pretty fast. The code's minimal and it looks like for the most part adding another dimension wouldn't be too difficult. IIRC, three integers can be shoved through the registers optimally on x86. I figure the hardest part would be writing the test.
I've tried this JPS library out and its pretty fast. The code's minimal and it looks like for the most part adding another dimension wouldn't be too difficult. IIRC, three integers can be shoved through the registers optimally on x86. I figure the hardest part would be writing the test.