Lines Matching refs:one
99 static const mpd_t one = {MPD_STATIC|MPD_CONST_DATA, 0, 1, 1, 1, data_one};
1664 * Check if one of the operands is NaN, copy to result and return 1 if this
1747 * check if the result has one digit too many.
4289 /* Check if the result is guaranteed to be one. */
4465 mpd_qfma(&sum, &sum, &tmp, &one, &workctx, &workctx.status);
4747 mpd_qsub(&tmp, &tmp, &one, &maxcontext, status);
4838 * Internal ln() function that does not check for specials, zero or one.
4867 /* Initial approximation: we have at least one non-zero digit */
4916 int cmp = _mpd_cmp(&v, &one);
4919 _mpd_qsub(&tmp, &v, &one, &maxcontext, &maxcontext.status);
4965 mpd_qsub(&tmp, &tmp, &one, &maxcontext, status);
5035 if (_mpd_cmp(a, &one) == 0) {
5120 * Internal log10() function that does not check for specials, zero or one.
5268 * Maximum of the two operands. Attention: If one operand is a quiet NaN and the
5269 * other is numeric, the numeric operand is returned. This may not be what one
5341 * Minimum of the two operands. Attention: If one operand is a quiet NaN and the
5342 * other is numeric, the numeric operand is returned. This may not be what one
6337 mpd_qcopy(result, &one, status);
6381 mpd_qdiv(&tbase, &one, base, &workctx, &workstatus);
6419 * If the exponent is infinite and base equals one, the result is one
6421 * Return the value of the comparison against one.
6430 if ((cmp = _mpd_cmp(base, &one)) == 0) {
6432 mpd_qshiftl(result, &one, shift, status);
6442 * If abs(base) equals one, calculate the correct power of one result.
6457 if ((cmp = _mpd_cmp_abs(base, &one)) == 0) {
6484 if (!mpd_qshiftl(result, &one, shift, status)) {
6576 mpd_qsub(&scratch, x, &one, &maxctx, status);
6744 /* power of one */
6788 if (!mpd_isspecial(result) && _mpd_cmp(result, &one) == 0) {
6790 mpd_qshiftl(result, &one, shift, status);
6814 mpd_qcopy(result, &one, status);
6874 r = (_mpd_cmp_abs(mod, &one)==0) ? 0 : 1;
6908 mpd_qshiftl(result, &one, tbase_exp, status);
6929 mpd_qcopy(result, &one, status);
7535 * inexact result is fixed by a small loop, using at most one iteration.
7611 takes at most one iteration. */
7635 _mpd_qadd_exact(qq, qq, &one, &workctx, &workctx.status);
7957 if (!mpd_qshiftl(result, &one, prec, status)) {
8368 * If rdata is non-NULL, it MUST be allocated by one of libmpdec's allocation
8447 * If rdata is non-NULL, it MUST be allocated by one of libmpdec's allocation