/dragonfly/contrib/mpfr/src/ |
H A D | log.c | 46 mpfr_t tmp1, tmp2; in mpfr_log() local 114 MPFR_GROUP_INIT_2 (group, p, tmp1, tmp2); in mpfr_log() 125 mpfr_mul_2si (tmp2, a, m, MPFR_RNDN); /* s=a*2^m, err<=1 ulp */ in mpfr_log() 126 mpfr_div (tmp1, __gmpfr_four, tmp2, MPFR_RNDN);/* 4/s, err<=2 ulps */ in mpfr_log() 127 mpfr_agm (tmp2, __gmpfr_one, tmp1, MPFR_RNDN); /* AG(1,4/s),err<=3 ulps */ in mpfr_log() 128 mpfr_mul_2ui (tmp2, tmp2, 1, MPFR_RNDN); /* 2*AG(1,4/s), err<=3 ulps */ in mpfr_log() 130 mpfr_div (tmp2, tmp1, tmp2, MPFR_RNDN); /* pi/2*AG(1,4/s), err<=5ulps */ in mpfr_log() 133 mpfr_sub (tmp1, tmp2, tmp1, MPFR_RNDN); /* log(a), err<=7ulps+cancel */ in mpfr_log() 135 if (MPFR_LIKELY (MPFR_IS_PURE_FP (tmp1) && MPFR_IS_PURE_FP (tmp2))) in mpfr_log() 137 cancel = MPFR_GET_EXP (tmp2) - MPFR_GET_EXP (tmp1); in mpfr_log() [all …]
|
H A D | gamma.c | 100 mpfr_t xp, GammaTrial, tmp, tmp2; in mpfr_gamma() local 296 mpfr_init2 (tmp2, 53); in mpfr_gamma() 313 mpfr_set_prec (tmp2, w); in mpfr_gamma() 316 mpfr_const_pi (tmp2, MPFR_RNDN); in mpfr_gamma() 317 mpfr_mul (tmp2, tmp2, tmp, MPFR_RNDN); /* Pi*(2-x) */ in mpfr_gamma() 321 mpfr_mul_ui (tmp2, tmp2, 3, MPFR_RNDU); /* 3Pi(2-x) */ in mpfr_gamma() 322 mpfr_add_ui (tmp2, tmp2, 1, MPFR_RNDU); /* 3Pi(2-x)+1 */ in mpfr_gamma() 323 mpfr_div_2ui (tmp2, tmp2, mpfr_get_prec (tmp), MPFR_RNDU); in mpfr_gamma() 325 if (mpfr_cmp (tmp2, tmp) < 0) in mpfr_gamma() 340 mpfr_clear (tmp2); in mpfr_gamma() [all …]
|
H A D | atan2.c | 121 mpfr_t tmp2; in mpfr_atan2() local 126 mpfr_init2 (tmp2, prec2); in mpfr_atan2() 130 mpfr_const_pi (tmp2, MPFR_RNDN); in mpfr_atan2() 131 mpfr_mul_ui (tmp2, tmp2, 3, MPFR_RNDN); /* Error <= 2 */ in mpfr_atan2() 132 mpfr_div_2ui (tmp2, tmp2, 2, MPFR_RNDN); in mpfr_atan2() 133 if (mpfr_round_p (MPFR_MANT (tmp2), MPFR_LIMB_SIZE (tmp2), in mpfr_atan2() 134 MPFR_PREC (tmp2) - 2, in mpfr_atan2() 138 mpfr_set_prec (tmp2, prec2); in mpfr_atan2() 142 MPFR_CHANGE_SIGN (tmp2); in mpfr_atan2() 143 inexact = mpfr_set (dest, tmp2, rnd_mode); in mpfr_atan2() [all …]
|
H A D | gammaonethird.c | 137 mpfr_t tmp, tmp2, tmp3; in mpfr_gamma_one_third() local 140 mpfr_init2 (tmp2, prec + 9); in mpfr_gamma_one_third() 149 mpfr_Browns_const (tmp2, prec + 9); in mpfr_gamma_one_third() 150 mpfr_mul (tmp, tmp, tmp2, MPFR_RNDN); in mpfr_gamma_one_third() 152 mpfr_set_ui (tmp2, 10, MPFR_RNDN); in mpfr_gamma_one_third() 153 mpfr_sqrt (tmp2, tmp2, MPFR_RNDN); in mpfr_gamma_one_third() 154 mpfr_div (tmp, tmp, tmp2, MPFR_RNDN); in mpfr_gamma_one_third() 160 mpfr_clear (tmp2); in mpfr_gamma_one_third()
|
H A D | atan.c | 192 mpfr_t xp, arctgt, sk, tmp, tmp2; in mpfr_atan() local 274 MPFR_GROUP_INIT_4 (group, prec, sk, tmp, tmp2, arctgt); in mpfr_atan() 303 MPFR_GROUP_REPREC_4 (group, prec, sk, tmp, tmp2, arctgt); in mpfr_atan() 393 mpfr_atan_aux (tmp2, ukz, twopoweri, n0 - i, tabz); in mpfr_atan() 394 mpfr_mul (tmp2, tmp2, tmp, MPFR_RNDN); in mpfr_atan() 396 mpfr_add (arctgt, arctgt, tmp2, MPFR_RNDN); in mpfr_atan() 398 mpfr_sub (tmp2, sk, tmp, MPFR_RNDN); in mpfr_atan() 401 mpfr_div (sk, tmp2, sk, MPFR_RNDN); in mpfr_atan()
|
/dragonfly/contrib/gmp/mpq/ |
H A D | aors.c | 33 mpz_t tmp1, tmp2; in mpq_aors() local 43 MPZ_TMP_INIT (tmp2, op2_num_size + op1_den_size); in mpq_aors() 58 mpz_divexact_gcd (tmp2, &(op1->_mp_den), gcd); in mpq_aors() 59 mpz_mul (tmp2, &(op2->_mp_num), tmp2); in mpq_aors() 61 MPZ_TMP_INIT (t, MAX (ABS (tmp1->_mp_size), ABS (tmp2->_mp_size)) + 1); in mpq_aors() 63 (*fun) (t, tmp1, tmp2); in mpq_aors() 64 mpz_divexact_gcd (tmp2, &(op1->_mp_den), gcd); in mpq_aors() 70 mpz_mul (&(rop->_mp_den), &(op2->_mp_den), tmp2); in mpq_aors() 76 mpz_mul (&(rop->_mp_den), tmp1, tmp2); in mpq_aors() 84 mpz_mul (tmp2, &(op2->_mp_num), &(op1->_mp_den)); in mpq_aors() [all …]
|
H A D | mul.c | 29 mpz_t tmp1, tmp2; in mpq_mul() local 72 MPZ_TMP_INIT (tmp2, alloc); in mpq_mul() 83 mpz_divexact_gcd (tmp2, &(op2->_mp_num), gcd2); in mpq_mul() 85 mpz_mul (&(prod->_mp_num), tmp1, tmp2); in mpq_mul() 88 mpz_divexact_gcd (tmp2, &(op1->_mp_den), gcd2); in mpq_mul() 90 mpz_mul (&(prod->_mp_den), tmp1, tmp2); in mpq_mul()
|
H A D | div.c | 28 mpz_t tmp1, tmp2; in mpq_div() local 67 MPZ_TMP_INIT (tmp2, alloc); in mpq_div() 81 mpz_divexact_gcd (tmp2, &(op2->_mp_den), gcd2); in mpq_div() 83 mpz_mul (numtmp, tmp1, tmp2); in mpq_div() 86 mpz_divexact_gcd (tmp2, &(op1->_mp_den), gcd2); in mpq_div() 88 mpz_mul (&(quot->_mp_den), tmp1, tmp2); in mpq_div()
|
/dragonfly/lib/libc/stdlib/ |
H A D | heapsort.c | 58 #define COPY(a, b, count, size, tmp1, tmp2) { \ argument 61 tmp2 = b; \ 63 *tmp1++ = *tmp2++; \ 106 #define SELECT(par_i, child_i, nmemb, par, child, size, k, count, tmp1, tmp2) { \ argument 114 COPY(par, child, count, size, tmp1, tmp2); \ 122 COPY(child, k, count, size, tmp1, tmp2); \ 125 COPY(child, par, count, size, tmp1, tmp2); \ 141 char tmp, *tmp1, *tmp2; in heapsort() local 170 COPY(k, base + nmemb * size, cnt, size, tmp1, tmp2); in heapsort() 171 COPY(base + nmemb * size, base + size, cnt, size, tmp1, tmp2); in heapsort() [all …]
|
/dragonfly/crypto/libressl/crypto/ec/ |
H A D | ecp_oct.c | 74 BIGNUM *tmp1, *tmp2, *x, *y; in ec_GFp_simple_set_compressed_coordinates() local 90 if ((tmp2 = BN_CTX_get(ctx)) == NULL) in ec_GFp_simple_set_compressed_coordinates() 107 if (!group->meth->field_sqr(group, tmp2, x_, ctx)) in ec_GFp_simple_set_compressed_coordinates() 112 if (!BN_mod_sqr(tmp2, x_, &group->field, ctx)) in ec_GFp_simple_set_compressed_coordinates() 114 if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) in ec_GFp_simple_set_compressed_coordinates() 120 if (!BN_mod_lshift1_quick(tmp2, x, &group->field)) in ec_GFp_simple_set_compressed_coordinates() 122 if (!BN_mod_add_quick(tmp2, tmp2, x, &group->field)) in ec_GFp_simple_set_compressed_coordinates() 124 if (!BN_mod_sub_quick(tmp1, tmp1, tmp2, &group->field)) in ec_GFp_simple_set_compressed_coordinates() 130 if (!BN_mod_mul(tmp2, tmp2, x, &group->field, ctx)) in ec_GFp_simple_set_compressed_coordinates() 138 if (!BN_mod_add_quick(tmp1, tmp1, tmp2, &group->field)) in ec_GFp_simple_set_compressed_coordinates() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/crypto/ |
H A D | milenage.c | 39 u8 tmp1[16], tmp2[16], tmp3[16]; in milenage_f1() local 49 os_memcpy(tmp2, sqn, 6); in milenage_f1() 50 os_memcpy(tmp2 + 6, amf, 2); in milenage_f1() 51 os_memcpy(tmp2 + 8, tmp2, 8); in milenage_f1() 57 tmp3[(i + 8) % 16] = tmp2[i] ^ opc[i]; in milenage_f1() 91 u8 tmp1[16], tmp2[16], tmp3[16]; in milenage_f2345() local 97 if (aes_128_encrypt_block(k, tmp1, tmp2)) in milenage_f2345() 108 tmp1[i] = tmp2[i] ^ opc[i]; in milenage_f2345() 124 tmp1[(i + 12) % 16] = tmp2[i] ^ opc[i]; in milenage_f2345() 136 tmp1[(i + 8) % 16] = tmp2[i] ^ opc[i]; in milenage_f2345() [all …]
|
H A D | sha1-pbkdf2.c | 18 unsigned char tmp[SHA1_MAC_LEN], tmp2[SHA1_MAC_LEN]; in pbkdf2_sha1_f() local 47 SHA1_MAC_LEN, tmp2)) in pbkdf2_sha1_f() 49 os_memcpy(tmp, tmp2, SHA1_MAC_LEN); in pbkdf2_sha1_f() 51 digest[j] ^= tmp2[j]; in pbkdf2_sha1_f()
|
H A D | aes-siv.c | 67 u8 tmp[AES_BLOCK_SIZE], tmp2[AES_BLOCK_SIZE]; in aes_s2v() local 90 tmp2); in aes_s2v() 95 xor(tmp, tmp2); in aes_s2v() 110 pad_block(tmp2, addr[i], len[i]); in aes_s2v() 111 xor(tmp, tmp2); in aes_s2v()
|
/dragonfly/crypto/libressl/crypto/aes/ |
H A D | aes_ige.c | 115 aes_block_t tmp, tmp2; in AES_ige_encrypt() local 125 tmp2.data[n] = tmp.data[n] ^ iv.data[n]; in AES_ige_encrypt() 126 AES_encrypt((unsigned char *)tmp2.data, in AES_ige_encrypt() 127 (unsigned char *)tmp2.data, key); in AES_ige_encrypt() 129 tmp2.data[n] ^= iv2.data[n]; in AES_ige_encrypt() 130 store_block(out, tmp2); in AES_ige_encrypt() 131 iv = tmp2; in AES_ige_encrypt() 167 aes_block_t tmp, tmp2; in AES_ige_encrypt() local 176 tmp2 = tmp; in AES_ige_encrypt() 184 iv = tmp2; in AES_ige_encrypt()
|
/dragonfly/lib/libutil/ |
H A D | dehumanize_number.c | 56 long long tmp, tmp2; in dehumanize_number() local 107 tmp2 = tmp * multiplier; in dehumanize_number() 108 tmp2 = tmp2 / multiplier; in dehumanize_number() 109 if (tmp != tmp2) { in dehumanize_number()
|
/dragonfly/games/hack/ |
H A D | hack.worm.c | 206 int tmp, tmp2; in cutworm() local 234 tmp2 = 0; in cutworm() 236 tmp2 = mtmp2->wormno; in cutworm() 237 wsegs[tmp2] = wsegs[tmp]; in cutworm() 238 wgrowtime[tmp2] = 0; in cutworm() 242 if (tmp2) in cutworm() 243 wheads[tmp2] = wtmp; in cutworm() 247 if (tmp2) { in cutworm() 265 if (!tmp2) in cutworm()
|
H A D | hack.apply.c | 157 int tmp2; in use_camera() local 169 tmp2 = mtmp->mblinded; in use_camera() 170 tmp2 += rnd(1 + 50 / tmp); in use_camera() 171 if (tmp2 > 127) in use_camera() 172 tmp2 = 127; in use_camera() 173 mtmp->mblinded = tmp2; in use_camera()
|
H A D | hack.mon.c | 846 int tmp2; in killed() local 850 for (tmp2 = 0; !tmp2 || ul + tmp2 <= ml; tmp2++) in killed() 851 if (u.uexp + 1 + (tmp + ((tmp2 <= 0) ? 0 : 4 << (tmp2 - 1))) / nk in killed() 856 tmp2 = ml - ul - 1; in killed() 857 tmp = (tmp + ((tmp2 < 0) ? 0 : 4 << tmp2)) / nk; in killed()
|
/dragonfly/games/larn/ |
H A D | movem.c | 26 static int tmp1, tmp2, tmp3, tmp4, distance; variable 44 tmp2 = playery + 6; in movemonst() 50 tmp2 = playery + 4; in movemonst() 60 if (tmp2 > MAXY) in movemonst() 61 tmp2 = MAXY; in movemonst() 69 if (tmp2 > MAXY - 1) in movemonst() 70 tmp2 = MAXY - 1; in movemonst() 85 for (j = tmp1; j < tmp2; j++) in movemonst() 95 for (j = tmp1; j < tmp2; j++) in movemonst() 165 yh = tmp2 + 2; in movemt() [all …]
|
/dragonfly/contrib/gcc-4.7/gcc/ |
H A D | sreal.c | 452 unsigned HOST_WIDE_INT tmp1, tmp2, tmp3; in sreal_mul() local 464 tmp2 = a->sig_lo * b->sig_hi; in sreal_mul() 469 tmp2 &= ((uhwi) 1 << SREAL_PART_BITS) - 1; in sreal_mul() 471 tmp1 = tmp2 + tmp3; in sreal_mul() 500 unsigned HOST_WIDE_INT tmp, tmp1, tmp2; in sreal_div() local 515 tmp2 = ((b->sig_hi << (SREAL_PART_BITS / 2)) in sreal_div() 518 tmp2++; in sreal_div() 521 tmp = tmp1 / tmp2; in sreal_div() 522 tmp1 = (tmp1 % tmp2) << (SREAL_PART_BITS / 2); in sreal_div() 525 tmp = tmp1 / tmp2; in sreal_div() [all …]
|
/dragonfly/contrib/cvs-1.12/src/ |
H A D | rcscmds.c | 215 char *tmp1, *tmp2; in RCS_merge() local 252 tmp2 = cvs_temp_name(); in RCS_merge() 253 if (RCS_checkout (rcs, NULL, xrev2, rev2, options, tmp2, NULL, NULL)) in RCS_merge() 285 call_diff_add_arg (tmp2); in RCS_merge() 307 if (unlink_file (tmp2) < 0) in RCS_merge() 310 error (0, errno, "cannot remove temp file %s", tmp2); in RCS_merge() 312 free (tmp2); in RCS_merge()
|
/dragonfly/contrib/gcc-8.0/gcc/ |
H A D | ccmp.c | 215 rtx tmp2 = NULL_RTX, ret = NULL_RTX, ret2 = NULL_RTX; in expand_ccmp_expr_1() local 241 tmp2 = targetm.gen_ccmp_first (&prep_seq_2, &gen_seq_2, rcode1, in expand_ccmp_expr_1() 243 if (!tmp && !tmp2) in expand_ccmp_expr_1() 245 if (tmp2 != NULL) in expand_ccmp_expr_1() 247 ret2 = expand_ccmp_next (op0, code, tmp2, &prep_seq_2, in expand_ccmp_expr_1()
|
/dragonfly/contrib/wpa_supplicant/src/eap_common/ |
H A D | eap_pwd_common.c | 130 struct crypto_bignum *tmp2 = NULL; in compute_password_element() local 236 crypto_bignum_deinit(tmp2, 1); in compute_password_element() 237 tmp2 = crypto_ec_point_compute_y_sqr(grp->group, x_candidate); in compute_password_element() 238 if (!tmp2) in compute_password_element() 242 qnr_bin, tmp2); in compute_password_element() 291 crypto_bignum_deinit(tmp2, 1); in compute_password_element()
|
/dragonfly/usr.bin/truss/ |
H A D | syscalls.c | 231 char *tmp2; in print_arg() local 232 tmp2 = get_string(fd, (void*)args[sc->offset], 0); in print_arg() 233 tmp = malloc(strlen(tmp2) + 3); in print_arg() 234 sprintf(tmp, "\"%s\"", tmp2); in print_arg() 235 free(tmp2); in print_arg()
|
/dragonfly/crypto/libressl/crypto/gost/ |
H A D | gostr341001.c | 153 BIGNUM *r = NULL, *s = NULL, *X = NULL, *tmp = NULL, *tmp2 = NULL, *k = in gost2001_do_sign() local 225 if (tmp2 == NULL) { in gost2001_do_sign() 226 if ((tmp2 = BN_CTX_get(ctx)) == NULL) in gost2001_do_sign() 229 if (BN_mod_mul(tmp2, k, e, order, ctx) == 0) in gost2001_do_sign() 231 if (BN_mod_add(s, tmp, tmp2, order, ctx) == 0) in gost2001_do_sign()
|