Keep It Simple, Stupid | |
PerlMonks |
Re^3: checking a set of numbers for consistency mod pby hv (Prior) |
on Apr 16, 2022 at 21:14 UTC ( [id://11143012]=note: print w/replies, xml ) | Need Help?? |
Nice stuff. :) It's a shame it will silently go wrong when p > 8 * sizeof(int), though. If you're lucky, the compiler may support declaring a variable-sized int[] array to save the bother of mallocing, but just indexing into it will already make the code a chunk more complex. And @LanX: there's no XS code here. The existence of Inline::C is the reason I never had to learn XS, and I'm very grateful for it. :)
In Section
Seekers of Perl Wisdom
|
|