Best way to get ceil(log2(x)) of a BigInt?

pineapple via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 2 07:05:50 PDT 2016


I'm trying to do some math stuff with std.bigint and realized 
there's no obvious way to calculate the ceil of log2 of a bigint. 
Help?


More information about the Digitalmars-d-learn mailing list