Lines Matching refs:BI_DB
36 var BI_DB;
143 BI_DB = dbits;
217 else if(sh+k > BI_DB) {
218 this_array[this.t-1] |= (x&((1<<(BI_DB-sh))-1))<<sh;
219 this_array[this.t++] = (x>>(BI_DB-sh));
224 if(sh >= BI_DB) sh -= BI_DB;
228 if(sh > 0) this_array[this.t-1] |= ((1<<(BI_DB-sh))-1)<<sh;
253 var p = BI_DB-(i*BI_DB)%k;
255 if(p < BI_DB && (d = this_array[i]>>p) > 0) { m = true; r = int2char(d); }
259 d |= this_array[--i]>>(p+=BI_DB-k);
263 if(p <= 0) { p += BI_DB; --i; }
307 return BI_DB*(this.t-1)+nbits(this_array[this.t-1]^(this.s&BI_DM));
334 var bs = n%BI_DB;
335 var cbs = BI_DB-bs;
337 var ds = Math.floor(n/BI_DB), c = (this.s<<bs)&BI_DM, i;
354 var ds = Math.floor(n/BI_DB);
356 var bs = n%BI_DB;
357 var cbs = BI_DB-bs;
378 c >>= BI_DB;
385 c >>= BI_DB;
394 c >>= BI_DB;
456 var nsh = BI_DB-nbits(pm_array[pm.t-1]); // normalize modulus
553 this.um = (1<<(BI_DB-15))-1;
680 return ((this_array[1]&((1<<(32-BI_DB))-1))<<BI_DB)|this_array[0];
696 function bnpChunkSize(r) { return Math.floor(Math.LN2*BI_DB/Math.log(r)); }
779 var p = BI_DB-(i*BI_DB)%8, d, k = 0;
781 if(p < BI_DB && (d = this_array[i]>>p) != (this.s&BI_DM)>>p)
782 r[k++] = d|(this.s<<(BI_DB-p));
786 d |= this_array[--i]>>(p+=BI_DB-8);
790 if(p <= 0) { p += BI_DB; --i; }
883 if(this_array[i] != 0) return i*BI_DB+lbit(this_array[i]);
884 if(this.s < 0) return this.t*BI_DB;
905 var j = Math.floor(n/BI_DB);
907 return((this_array[j]&(1<<(n%BI_DB)))!=0);
935 c >>= BI_DB;
942 c >>= BI_DB;
951 c >>= BI_DB;
1125 if(j > 0) w |= e_array[j-1]>>(BI_DB+i-k1);
1130 if((i -= n) < 0) { i += BI_DB; --j; }
1143 if(--i < 0) { i = BI_DB-1; --j; }