|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-10-08 13:27 UTC] dsnytkine at ultralogistics dot com
Description: ------------ Please implement a zero-filled right-shift similar to Java and JavaScript >>> operator. It is really useful in some situations. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 22:00:02 2025 UTC |
You can use this function meantime (performance sucks anyway): // 32-bit zero-filled right-shift function zrsh($a, $n) { if ($n <= 0) return $a; $b = 0x80000000; return ($a >> $n) & ~($b >> ($n - 1)); }