Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
BN_add_word, BN_sub_word, BN_mul_word, BN_div_word, BN_mod_word — arithmetic functions on BIGNUMs with integersSYNOPSIS
#include <openssl/bn.h>BN_add_word(BIGNUM *a, BN_ULONG w);
BN_sub_word(BIGNUM *a, BN_ULONG w);
BN_mul_word(BIGNUM *a, BN_ULONG w);
BN_div_word(BIGNUM *a, BN_ULONG w);
BN_mod_word(const BIGNUM *a, BN_ULONG w);
DESCRIPTION
These functions perform arithmetic operations on BIGNUMs with unsigned integers. They are much more efficient than the normal BIGNUM arithmetic operations.a+=w
).a-=w
).a*=w
).a/=w
) and returns the remainder.a%w
).