Re: logarithm in OpenSSL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux