Lines Matching refs:scale
122 /// bits less than scale. It is also used less than scale. See the
126 /// The actual scale of the number. This is different from rdx because there
128 /// digits may be part of the scale. However, scale must always match rdx
131 size_t scale;
194 * Returns true if the BcNum @a n is one with no scale.
196 * @return True if @a n equals 1 with no scale, false otherwise.
214 * Rounds @a s (scale) up to the next power of BC_BASE_DIGS. This will also
217 * @param s The scale to round up.
223 * Returns the equivalent rdx for the scale @a s.
224 * @param s The scale to convert.
269 * Returns true if the rdx and scale for @a n match.
271 * @return True if the rdx and scale of @a n match, false otherwise.
274 (BC_NUM_ZERO(n) || BC_NUM_RDX_VAL(n) * BC_BASE_DIGS >= (n)->scale)
277 * Returns true if the rdx and scale for @a n match, where @a n is not a
280 * @return True if the rdx and scale of @a n match, false otherwise.
283 ((!(n).len) || BC_NUM_RDX_VAL_NP(n) * BC_BASE_DIGS >= (n).scale)
369 * @param scale The current scale.
371 typedef void (*BcNumBinaryOp)(BcNum* a, BcNum* b, BcNum* c, size_t scale);
380 * @param scale The current scale.
382 typedef void (*BcNumBinOp)(BcNum* a, BcNum* b, BcNum* restrict c, size_t scale);
390 * @param scale The current scale.
392 * with @a a, @a b, and @a scale.
395 size_t scale);
482 * Returns the scale of @a n.
484 * @return The scale of @a n.
492 * scale if it exists. Then, If it is not zero, it opens a whole other can of
563 * @param scale The current scale.
566 bc_num_add(BcNum* a, BcNum* b, BcNum* c, size_t scale);
573 * @param scale The current scale.
576 bc_num_sub(BcNum* a, BcNum* b, BcNum* c, size_t scale);
583 * @param scale The current scale.
586 bc_num_mul(BcNum* a, BcNum* b, BcNum* c, size_t scale);
593 * @param scale The current scale.
596 bc_num_div(BcNum* a, BcNum* b, BcNum* c, size_t scale);
603 * @param scale The current scale.
606 bc_num_mod(BcNum* a, BcNum* b, BcNum* c, size_t scale);
613 * @param scale The current scale.
616 bc_num_pow(BcNum* a, BcNum* b, BcNum* c, size_t scale);
624 * @param scale The current scale.
627 bc_num_places(BcNum* a, BcNum* b, BcNum* c, size_t scale);
634 * @param scale The current scale.
637 bc_num_lshift(BcNum* a, BcNum* b, BcNum* c, size_t scale);
644 * @param scale The current scale.
647 bc_num_rshift(BcNum* a, BcNum* b, BcNum* c, size_t scale);
655 * @param scale The current scale.
658 bc_num_sqrt(BcNum* restrict a, BcNum* restrict b, size_t scale);
666 * @param scale The current scale.
669 bc_num_divmod(BcNum* a, BcNum* b, BcNum* c, BcNum* d, size_t scale);
676 * @param scale The current scale.
678 * with @a a, @a b, and @a scale.
681 bc_num_addReq(const BcNum* a, const BcNum* b, size_t scale);
688 * @param scale The current scale.
690 * with @a a, @a b, and @a scale.
693 bc_num_mulReq(const BcNum* a, const BcNum* b, size_t scale);
700 * @param scale The current scale.
702 * modulus with @a a, @a b, and @a scale.
705 bc_num_divReq(const BcNum* a, const BcNum* b, size_t scale);
712 * @param scale The current scale.
714 * with @a a, @a b, and @a scale.
717 bc_num_powReq(const BcNum* a, const BcNum* b, size_t scale);
726 * @param scale The current scale.
728 * shift, or right shift with @a a, @a b, and @a scale.
731 bc_num_placesReq(const BcNum* a, const BcNum* b, size_t scale);
785 * Sets @a n to zero with a scale of zero.
792 * Sets @a n to one with a scale of zero.
837 * Invert @a into @a b at the current scale.
840 * @param scale The current scale.
842 #define bc_num_inv(a, b, scale) bc_num_div(&vm->one, (a), (b), (scale))