Lines Matching refs:exp
45 The limb just above the radix point for us to extract is ptr[size-exp].
47 We need to check that the size-exp index falls in our available data
49 involving exp by requiring size>=exp (giving size-exp >= 0) and exp>0
50 (giving size-exp <= size-1).
52 Notice if size==0 there's no fetch, since of course size>=exp and exp>0
58 is ptr[size-exp+1].
60 Again we need to check that size-exp+1 falls in our data range, 0 to
62 size+1>=exp (giving size-exp+1 >= 0) and exp>1 (giving size-exp+1 <=
66 either since size+1>=exp and exp>1 are only true if size>0.
68 The code is arranged with exp>0 wrapping the exp>1 test since exp>1 is
70 exp-1>0, which is incorrect when exp==MP_EXP_T_MIN. By having exp>0
71 tested first we ensure MP_EXP_T_MIN doesn't reach exp>1. */
77 mp_exp_t exp;
81 exp = EXP (f);
86 if (exp > 0)
91 if (size >= exp)
92 fl = fp[size-exp];
95 if (exp > 1 && size+1 >= exp)
96 fl += (fp[size-exp+1] << GMP_NUMB_BITS);