Lines Matching refs:shift
505 * @param int $shift
508 protected static function base256_lshift(&$x, $shift) argument
510 if ($shift == 0) {
514 $num_bytes = $shift >> 3; // eg. floor($shift/8)
515 $shift &= 7; // eg. $shift % 8
519 $temp = ord($x[$i]) << $shift | $carry;
532 * @param int $shift
535 public function bitwise_leftRotate($shift) argument
555 if ($shift < 0) {
556 $shift += $precision;
558 $shift %= $precision;
560 if (!$shift) {
564 $left = $this->bitwise_leftShift($shift);
566 $right = $this->bitwise_rightShift($precision - $shift);
576 * @param int $shift
579 public function bitwise_rightRotate($shift) argument
581 return $this->bitwise_leftRotate(-$shift);