Double? Just add one bit to the representation and limits of each.
You should be able to find those lines in Bitcoin Core.
I'm pretty sure that is not how it works. The secp256k1 curve is only for 256 bit private keys. To double the range, you be using 257 bit private keys and that would require an entirely different curve.
I was primarily joshing about the code since it really wasn't clear what they were asking without more context. 😀