Lines Matching full:src
45 * @param int $src
48 protected static function decode6Bits(int $src): int argument
52 // if ($src > 0x40 && $src < 0x5b) $ret += $src - 0x41 + 1; // -64
53 $ret += (((0x40 - $src) & ($src - 0x5b)) >> 8) & ($src - 64);
55 // if ($src > 0x60 && $src < 0x7b) $ret += $src - 0x61 + 26 + 1; // -70
56 $ret += (((0x60 - $src) & ($src - 0x7b)) >> 8) & ($src - 70);
58 // if ($src > 0x2f && $src < 0x3a) $ret += $src - 0x30 + 52 + 1; // 5
59 $ret += (((0x2f - $src) & ($src - 0x3a)) >> 8) & ($src + 5);
61 // if ($src == 0x2c) $ret += 62 + 1;
62 $ret += (((0x2c - $src) & ($src - 0x2e)) >> 8) & 63;
64 // if ($src == 0x5f) ret += 63 + 1;
65 $ret += (((0x5e - $src) & ($src - 0x60)) >> 8) & 64;
74 * @param int $src
77 protected static function encode6Bits(int $src): string argument
81 // if ($src > 25) $diff += 0x61 - 0x41 - 26; // 6
82 $diff += ((25 - $src) >> 8) & 6;
84 // if ($src > 51) $diff += 0x30 - 0x61 - 26; // -75
85 $diff -= ((51 - $src) >> 8) & 75;
87 // if ($src > 61) $diff += 0x2d - 0x30 - 10; // -13
88 $diff -= ((61 - $src) >> 8) & 13;
90 // if ($src > 62) $diff += 0x5f - 0x2b - 1; // 3
91 $diff += ((62 - $src) >> 8) & 49;
93 return \pack('C', $src + $diff);