Searched refs:adj_exp (Results 1 – 2 of 2) sorted by relevance
67 const int adj_exp = (int)u.p.exp - MP_FLOAT_EXP_BIAS; in mp_float_hash() local68 if (adj_exp < 0) { in mp_float_hash()76 if (adj_exp <= MP_FLOAT_FRAC_BITS) { in mp_float_hash()78 val = (frc >> (MP_FLOAT_FRAC_BITS - adj_exp)) in mp_float_hash()79 ^ (frc & (((mp_float_uint_t)1 << (MP_FLOAT_FRAC_BITS - adj_exp)) - 1)); in mp_float_hash()80 } else if ((unsigned int)adj_exp < MP_BITS_PER_BYTE * sizeof(mp_int_t) - 1) { in mp_float_hash()82 val = (mp_int_t)frc << (adj_exp - MP_FLOAT_FRAC_BITS); in mp_float_hash()
769 const int adj_exp = (int)u.p.exp - MP_FLOAT_EXP_BIAS; in mpz_set_from_float() local770 if (adj_exp < 0) { in mpz_set_from_float()773 } else if (adj_exp == 0) { in mpz_set_from_float()778 const int dig_cnt = (adj_exp + 1 + (DIG_SIZE - 1)) / DIG_SIZE; in mpz_set_from_float()779 const unsigned int rem = adj_exp % DIG_SIZE; in mpz_set_from_float()783 if (adj_exp < MP_FLOAT_FRAC_BITS) { in mpz_set_from_float()786 frc >>= MP_FLOAT_FRAC_BITS - adj_exp; in mpz_set_from_float()789 dig_ind = (adj_exp - MP_FLOAT_FRAC_BITS) / DIG_SIZE; in mpz_set_from_float()
Completed in 6 milliseconds