Bigint(bigbit)库 [英] Bigint (bigbit) library

查看:196
本文介绍了Bigint(bigbit)库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个c ++类/库提供1024位和更大的整数和位操作,如:
- 位移位,
- 位或/和,
- 位置第一零位

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

速度至关重要,因此必须使用一些SIMD程序集来实现。

speed is crucial, so it would have to be implemented with some SIMD assembly.

推荐答案

有几种,包括 GMP ,但对于速度,最好的可能是 TTmath 。 TTmath的设计决定使用模板化固定长度在compiletime让它相当快。

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.

这篇关于Bigint(bigbit)库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆