The BN_num_bits() approximation is exactly what we need. We need it to compute the depth of a node in a binary tree of which we only have a sub tree available.

Thank you,
Niklas

On 24.07.2019 23:59, Dr Paul Dale wrote:
I’m wondering why you need the log function?
If you’re measuring performance, could the analysis tool perform the logarithm?

A first order approximation to log_2(n) where n is a BIGNUM would be 
BN_num_bits(n).


Pauli

Reply via email to