Lines Matching +full:parameter +full:- +full:less

4  * SPDX-License-Identifier: BSD-2-Clause
6 * Copyright (c) 2018-2024 Gavin D. Howard and contributors.
122 /// bits less than scale. It is also used less than scale. See the
180 * Returns non-zero if the BcNum @a n is non-zero.
182 * @return Non-zero if @a n is non-zero, zero otherwise.
184 #define BC_NUM_NONZERO(n) ((n)->len)
198 #define BC_NUM_ONE(n) ((n)->len == 1 && (n)->rdx == 0 && (n)->num[0] == 1)
205 #define BC_NUM_NUM_LETTER(c) ((c) - 'A' + BC_BASE)
220 #define BC_NUM_ROUND_POW(s) (bc_vm_growSize((s), BC_BASE_DIGS - 1))
234 #define BC_NUM_RDX_VAL(n) ((n)->rdx >> 1)
250 ((n)->rdx = (((v) << 1) | ((n)->rdx & (BcBigDig) 1)))
266 #define BC_NUM_RDX_SET_NEG(n, v, neg) ((n)->rdx = (((v) << 1) | (neg)))
274 (BC_NUM_ZERO(n) || BC_NUM_RDX_VAL(n) * BC_BASE_DIGS >= (n)->scale)
290 #define BC_NUM_NEG(n) ((n)->rdx & ((BcBigDig) 1))
304 #define BC_NUM_NEG_CLR(n) ((n)->rdx &= ~((BcBigDig) 1))
316 #define BC_NUM_NEG_SET(n) ((n)->rdx |= ((BcBigDig) 1))
322 #define BC_NUM_NEG_TGL(n) ((n)->rdx ^= ((BcBigDig) 1))
336 #define BC_NUM_NEG_VAL(n, v) (((n)->rdx & ~((BcBigDig) 1)) | (v))
366 * @param a The first parameter.
367 * @param b The second parameter.
379 * @param c The return parameter.
388 * @param a The first parameter.
389 * @param b The second parameter.
413 * @param a The first parameter and return value.
414 * @param b The second parameter.
531 * Generates a random arbitrary-size integer less than or equal to @a a and
535 * @param rng The pseudo-random number generator.
551 * @param rng The pseudo-random number generator.
560 * @param a The first parameter.
561 * @param b The second parameter.
570 * @param a The first parameter.
571 * @param b The second parameter.
580 * @param a The first parameter. This is a BcNumBinaryOp function.
581 * @param b The second parameter.
590 * @param a The first parameter. This is a BcNumBinaryOp function.
591 * @param b The second parameter.
600 * @param a The first parameter. This is a BcNumBinaryOp function.
601 * @param b The second parameter.
610 * @param a The first parameter. This is a BcNumBinaryOp function.
611 * @param b The second parameter.
621 * @param a The first parameter.
622 * @param b The second parameter.
631 * @param a The first parameter.
632 * @param b The second parameter.
641 * @param a The first parameter.
642 * @param b The second parameter.
653 * @param a The first parameter.
662 * @param a The first parameter.
663 * @param b The second parameter.
674 * @param a The first parameter.
675 * @param b The second parameter.
686 * @param a The first parameter.
687 * @param b The second parameter.
698 * @param a The first parameter.
699 * @param b The second parameter.
710 * @param a The first parameter.
711 * @param b The second parameter.
724 * @param a The first parameter.
725 * @param b The second parameter.
765 * Returns >0 if @a a is greater than @a b, <0 if @a a is less than @a b, and =0
776 * @param a The first parameter.
777 * @param b The second parameter.
778 * @param c The third parameter.
808 * The library needs this to check user-supplied strings, but in bc and dc, this
839 * @param b The return parameter. This must be preallocated.
842 #define bc_num_inv(a, b, scale) bc_num_div(&vm->one, (a), (b), (scale))
858 * Print a number with a label. This is a debug-only function.
867 * Print the limbs of @a n. This is a debug-only function.