Int128 in .Net?

后端 未结 8 1014
北海茫月
北海茫月 2020-12-01 09:53

I need to do some large integer math. Are there any classes or structs out there that represent a 128-bit integer and implement all of the usual operators?

BTW, I r

8条回答
  •  自闭症患者
    2020-12-01 10:46

    While BigInteger is the best solution for most applications, if you have performance critical numerical computations, you can use the complete Int128 and UInt128 implementations in my Dirichlet.Numerics library. These types are useful if Int64 and UInt64 are too small but BigInteger is too slow.

提交回复
热议问题