Bigint (bigbit) library

前端 未结 3 1616
盖世英雄少女心
盖世英雄少女心 2020-11-27 07:37

I\'m looking for a c++ class/library that provides 1024 bit and bigger integers and bit operations like: - bit shifting, - bitwise OR/AND, - position first zero bit

3条回答
  •  误落风尘
    2020-11-27 08:18

    There are several, including GMP, but for speed, the best is likely TTmath. TTmath's design decision to use templated fixed lengths at compiletime lets it be quite fast.

提交回复
热议问题