5 Nov
2019
5 Nov
'19
11:33 a.m.
On 05/11/2019 09:12, Andy via Boost-users wrote:
sizeof(boost::multiprecision::cpp_int) is only 24 bytes = 6*32 bit limb This means, that upto 24 bytes is stored at stack on variable itself, and bigger are allocated?
There are other member variables making up that size - the default (as used by type cpp_int) is never less than 2 whole limbs (so 128 bits when __int128 is available), otherwise however many limbs will fit inside sizeof(unsigned)+sizeof(void*), which is 4 32-bit limbs on MSVC. -- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus