but it is a non-core XS module that doesn't really provide much advantage over Math::BigInt
Well, Math::Int64 does provide better performance than Math::BigInt.
But if you're looking for something that's already part of perl's core, then I can't think of anything other than Math::BigInt.
I take it you're aware that most 32-bit perls (especially the modern ones) have 64-bit IV/UVs and already support pack's "Q" template.
In any case, you'll also find 32-bit builds whose IV/UVs are only 32-bits ... and I understand these are the builds that you're wanting to cater to.
You distinguish between the 2 different configurations by checking to see whether $Config{ivsize} is 4 or 8. (Sorry ...
you probably already know all about that.)
Cheers,
Rob