Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 94) sorted by relevance

1234

/plugin/gtime/gtlib/util/
H A DGTBaseX.php37 private $bits; variable in GTBaseX
59 $this->bits = 1;
62 $this->bits++;
65 if ((1 << $this->bits) != strlen($alphabet)) {
69 $this->block = 8 / GTUtil::gcd(8, $this->bits);
174 $mask = (1 << $this->bits) - 1;
176 while ($this->bits * $i < 8 * $length) {
182 while ($size < $this->bits) {
193 $size -= $this->bits;
252 $buff = ($buff << $this->bits) | $next;
[all …]
/plugin/pgn4web/pgn4web/
H A Dpgn-encoder.php299 $bits = "";
303 if (ord(substr($ov, $i, 1)) > 255) { $bits = $bits . $LetterCodes[42]; }
304 else { $bits = $bits . $LetterCodes[ord(substr($ov, $i, 1))]; }
305 while (strlen($bits) > 5) {
306 $bytes = $bytes . BitsToBytes($bits);
307 $bits = substr($bits, 6);
310 $bytes = $bytes . BitsToBytes($bits);
H A Dpgn-encoder.js307 var bits = "";
311 if (ov.charCodeAt(i) > 255) { bits += LetterCodes[42]; }
312 else { bits += LetterCodes[ov.charCodeAt(i)]; }
313 while (bits.length > 5) {
314 bytes += BitsToBytes(bits);
315 bits = bits.slice(6, bits.length);
318 bytes += BitsToBytes(bits);
/plugin/passpolicy/
H A Dhelper.php262 $poolbits = $this->bits($pool_len);
273 $poolbits = $this->bits($pool_len);
305 $c_bits = $this->bits($c_len);
306 $v_bits = $this->bits($v_len);
307 $a_bits = $this->bits($a_len);
313 $num_bits -= $this->bits(99 - 10);
355 $num_bits -= $this->bits(999);
388 protected function bits($number) function in helper_plugin_passpolicy
390 $bits = 0;
394 $bits += 1;
[all …]
/plugin/amcharts/assets/amcharts/plugins/export/libs/jszip/
H A Djszip.js5842 bits = state.bits;
6074 state.bits = bits;
6485 bits = state.bits;
6833 bits -= bits & 7;
6888 bits -= bits & 7;
7505 state.bits = bits;
7621 var bits = opts.bits;
8194 for (bits = 0; bits <= MAX_BITS; bits++) {
8249 for (bits = max_length; bits !== 0; bits--) {
8286 for (bits = 1; bits <= MAX_BITS; bits++) {
[all …]
/plugin/register/
H A Dsyntax.php77 private function push_bit(&$bits, &$bit) argument
88 array_push($bits, array($range[0], $range[1], $bit["name"], $bit["desc"], $bit["flags"]));
94 $bits = array();
109 $this->push_bit($bits, $bit);
118 $this->push_bit($bits, $bit);
129 return array($keys, $bits);
181 $bits = array_reverse($adi_xml_result["bits"]);
182 return array($keys, $bits);
193 list($keys, $bits) = $ret;
215 $bits
H A Dregister.php199 var $name, $desc, $mmr_addr, $maxbits, $bits, $resetval, $bitrange, $perms, $sub_desc;
200 public function register($name, $desc, $mmr_addr, $resetval, $maxbits, $perms, $sub_desc, $bits) argument
210 $this->bits = array();
212 foreach ($bits as $bit) {
215 $this->bits[$b->start] = $b;
221 foreach ($this->bits as $b) {
237 private function bitrange($bits, $upper, $lower) argument
240 return ($bits & ((1 << $upper) - 1) ^ ((1 << $lower) - 1)) >> $lower;
291 foreach ($register->bits as $bit)
/plugin/gtime/gtlib/tsp/
H A DGTHashChain.php286 $bits = $N->toBits();
288 for ($i = 0; $i < strlen($bits); $i++) {
289 if ($bits{$i} == '1') {
311 $bits = $hashChainDirs->toBits();
314 while (strlen($bits) % 64 != 0) {
315 $bits = '0' . $bits;
320 for ($i = 0; $i < strlen($bits); $i++) {
321 if ($bits{$i} == '0') {
/plugin/xlsx2dw/packages/jszip/
H A Djszip.js7942 bits = state.bits;
8174 state.bits = bits;
8603 bits = state.bits;
8951 bits -= bits & 7;
9006 bits -= bits & 7;
9623 state.bits = bits;
9793 var bits = opts.bits;
10407 for (bits = 0; bits <= MAX_BITS; bits++) {
10462 for (bits = max_length; bits !== 0; bits--) {
10499 for (bits = 1; bits <= MAX_BITS; bits++) {
[all …]
/plugin/jplayer/vendor/james-heinrich/getid3/getid3/
H A Dmodule.graphic.gif.php202 * @param int $bits
206 public function GetLSBits($bits) { argument
208 while (strlen($bitbuffer) < $bits) {
211 $value = bindec(substr($bitbuffer, 0 - $bits));
212 $bitbuffer = substr($bitbuffer, 0, 0 - $bits);
H A Dmodule.audio-video.flv.php836 * @param int $bits
838 public function skipBits($bits) { argument
839 $newBits = $this->currentBits + $bits;
854 * @param int $bits
858 public function getBits($bits) { argument
860 for ($i = 0; $i < $bits; $i++) {
/plugin/barcodes/vendor/jucksearm/php-barcode/lib/
H A DQRcode.php207 * Number of header bits for structured mode
712 // remainder bits
892 * Write Format Information on frame and returns the number of black bits
1742 * @return int number of bits
1746 $bits = ($w * 10);
1749 $bits += 4;
1753 $bits += 7;
1757 return $bits;
1763 * @return int number of bits
1766 $bits
1914 lengthOfCode($mode, $version, $bits) global() argument
2097 newFromNum($bits, $num) global() argument
2158 appendNum($bitstream, $bits, $num) global() argument
[all...]
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/
H A DEngine.php294 $result = $this->precision > 0 ? substr($bits, -$this->precision) : ltrim($bits, '0');
421 * @param int $bits
425 if ($bits < 1) {
431 $this->precision = $bits;
453 * @param int $bits
458 return new static(chr((1 << ($bits & 0x7)) - 1) . str_repeat(chr(0xFF), $bits >> 3), 256);
537 $bits = $this->toBytes();
548 $temp = ord($bits[0]);
587 * @param int $bits
592 $bytes = $bits >> 3;
[all …]
H A DGMP.php130 $bits = gmp_strval(gmp_init($hex, 16), 2);
133 $bits = substr($bits, -$this->precision);
137 return '0' . $bits;
140 return $bits;
H A DBCMath.php638 * @param int $bits
642 protected static function setBitmask($bits) argument
644 $temp = parent::setBitmask($bits);
/plugin/qrcode2/
H A Dphpqrcode.php1211 $bits = 0;
1232 return $bits;
1417 $bits = $w * 10;
1430 return $bits;
1467 $bits = $w * 11;
1470 $bits += 6;
1473 return $bits;
1533 $bits = 0;
1539 return $bits;
1662 $bits += 4;
[all …]
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/
H A DRSA.php322 * @param int $bits
324 public static function createKey($bits = 2048) argument
328 $regSize = $bits >> 1; // divide by two to see how many bits P and Q would be
330 $num_primes = floor($bits / self::$smallestPrime);
336 if ($num_primes == 2 && $bits >= 384 && self::$defaultExponent == 65537) {
347 $rsa = openssl_pkey_new(['private_key_bits' => $bits] + $config);
375 extract(BigInteger::minMaxBits($bits));
430 $privatekey->k = $bits >> 3;
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Common/Functions/
H A DStrings.php327 $bits = '';
331 $bits .= sprintf('%032b', $digit);
336 $bits .= sprintf('%064b', $digit);
340 return $trim ? ltrim($bits, '0') : $bits;
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Math/
H A DBigInteger.php382 * @param int $bits
384 public function setPrecision($bits) argument
386 $this->value->setPrecision($bits);
615 * @param int $bits
618 public static function minMaxBits($bits) argument
623 extract($class::minMaxBits($bits));
/plugin/jplayer/vendor/happyworm/jplayer/lib/aurora/
H A Daurora.js424 if (bits === 0) {
459 this.advance(bits);
465 if (bits === 0) {
505 if (bits === 0) {
508 if (bits > 40) {
526 a %= Math.pow(2, bits);
528 a &= (1 << bits) - 1;
541 this.advance(bits);
547 if (bits === 0) {
550 if (bits > 40) {
[all …]
H A Dmp3.js663 var PTR = function(offs, bits) { argument
667 bits: bits,
4075 bits: 'int8',
4880 var c = stream.read(quantclass.bits);
4888 nb = quantclass.bits;
5511 var bits = ((32 - 1 - 21) + (21 - cachesz)) & ~7;
5512 bitcache = (bitcache << bits) | peek.read(bits);
5513 cachesz += bits;
5514 bits_left -= bits;
5522 clumpsz = pair.ptr.bits;
[all …]
/plugin/dw2pdf/vendor/mpdf/mpdf/src/
H A DCssManager.php644 $bits = preg_split('/\s+/', $s);
645 if (count($bits) > 1) {
647 $v = $bits[(count($bits) - 1)];
648 $fs = $bits[(count($bits) - 2)];
953 $bits = preg_split('/\s+/', trim($s));
956 if (count($bits) === 1) {
957 if (false !== strpos($bits[0], 'bottom')) {
959 } elseif (false !== strpos($bits[
[all...]
/plugin/quickstats/GEOIP/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/
H A DDecoder.php187 private function decodeDouble($bits) argument
195 list(, $double) = unpack('d', $this->maybeSwitchByteOrder($bits));
200 private function decodeFloat($bits) argument
208 list(, $float) = unpack('f', $this->maybeSwitchByteOrder($bits));
/plugin/amcharts/assets/amcharts/plugins/export/libs/pdfmake/
H A Dpdfmake.js23407 for (bits = 0; bits <= MAX_BITS; bits++) {
23462 for (bits = max_length; bits !== 0; bits--) {
23499 for (bits = 1; bits <= MAX_BITS; bits++) {
23579 for (bits = 0; bits <= MAX_BITS; bits++) {
24833 bits = state.bits;
25181 bits -= bits & 7;
25236 bits -= bits & 7;
25853 state.bits = bits;
26026 bits = state.bits;
26258 state.bits = bits;
[all …]
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/File/
H A DASN1.php773 …$bits = count($mapping['mapping']) == $size ? [] : array_fill(0, count($mapping['mapping']) - $siz…
777 $bits[] = (bool) ($current & (1 << $j));
784 if ($bits[$i]) {
1039 $bits = array_fill(0, count($mapping['mapping']), 0);
1043 $bits[$i] = 1;
1058 unset($bits[$i]);
1061 $bits = implode('', array_pad($bits, $size + $offset + 1, 0));
1062 $bytes = explode(' ', rtrim(chunk_split($bits, 8, ' ')));

1234