Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
根据此链接,
boost::multiprecision::uint128_t sizeof 为 24
uint128_t 应该是 24。
我在 Linux Ubuntu 16.04 x64 上尝试过,它显示为 16。
任何原因?
cpp_int_base 使用一些辅助变量
data_type m_data; unsigned m_limbs; bool m_sign, m_internal;