in reply to Re^2: checking a set of numbers for consistency mod p
in thread checking a set of numbers for consistency mod p
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. :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: checking a set of numbers for consistency mod p
by LanX (Saint) on Apr 16, 2022 at 21:30 UTC | |
by hv (Prior) on Apr 17, 2022 at 03:03 UTC | |
by LanX (Saint) on Apr 17, 2022 at 08:57 UTC |