duanchun1909
duanchun1909
2013-09-30 23:57

有big.BitCount吗?

  • it技术
  • 互联网问答
  • IT行业问题
  • 编程语言问答
  • 计算机技术

Is there an already-written BitCount method for big.Int? There doesn't seem to be one in math/big.

Obviously I will write one myself if not - does anyone have one already written?

I want the number of set bits in the number. Like Java BigInteger.bitCount().

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答

为你推荐