Lines Matching refs:shift
576 for ($shift = 0; !($msb & static::MSB); ++$shift) {
579 $x->lshift($shift);
580 $y->lshift($shift);
671 $x->rshift($shift);
677 $y->rshift($shift);
854 * @param int $shift
857 public function bitwise_rightShift($shift) argument
864 $temp->rshift($shift);
874 * @param int $shift
877 public function bitwise_leftShift($shift) argument
883 $temp->lshift($shift);
916 * @param int $shift
918 protected function lshift($shift) argument
920 if ($shift == 0) {
924 $num_digits = (int)($shift / static::BASE);
925 $shift %= static::BASE;
926 $shift = 1 << $shift;
931 $temp = $this->value[$i] * $shift + $carry;
950 * @param int $shift
952 protected function rshift($shift) argument
954 if ($shift == 0) {
958 $num_digits = (int)($shift / static::BASE);
959 $shift %= static::BASE;
960 $carry_shift = static::BASE - $shift;
961 $carry_mask = (1 << $shift) - 1;
970 $temp = $this->value[$i] >> $shift | $carry;