|
Boost Users : |
From: John Maddock (jz.maddock_at_[hidden])
Date: 2019-11-05 11:33:08
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net