Sortix nightly manual
This manual documents Sortix nightly, a development build that has not been officially released. You can instead view this document in the latest official manual.
NAME
BN_num_bits_word, BN_num_bits, BN_num_bytes — get BIGNUM sizeSYNOPSIS
#include <openssl/bn.h>BN_num_bits_word(BN_ULONG w);
BN_num_bits(const BIGNUM *a);
BN_num_bytes(const BIGNUM *a);
DESCRIPTION
BN_num_bits_word() returns the number of significant bits in w, that is, the minimum number of digits needed to write w as a binary number. Except for an argument of 0, this isfloor(log2(w))+ 1
.