public function writeUInt30($x) { if ($x < 0 || $x >= 1073741824) { throw new HException(haxe_io_Error::$Overflow); } if ($this->bigEndian) { $this->writeByte(_hx_shift_right($x, 24)); $this->writeByte($x >> 16 & 255); $this->writeByte($x >> 8 & 255); $this->writeByte($x & 255); } else { $this->writeByte($x & 255); $this->writeByte($x >> 8 & 255); $this->writeByte($x >> 16 & 255); $this->writeByte(_hx_shift_right($x, 24)); } }
static function ushr($a, $b) { return _hx_shift_right($a, $b); }
static function ushr($a, $b) { return ($b & 63) === 0 ? $a : (($b & 63) < 32 ? new haxe_Int64(_hx_shift_right($a->high, $b), _hx_shift_right($a->low, $b) | $a->high << 32 - ($b & 63)) : new haxe_Int64(0 | 0, _hx_shift_right($a->high, $b - 32))); }