Edit report at https://bugs.php.net/bug.php?id=55872&edit=1

 ID:                 55872
 Comment by:         zyss at mail dot zp dot ua
 Reported by:        dsnytkine at ultralogistics dot com
 Summary:            Zero filled right-shift
 Status:             Open
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   any
 PHP Version:        5.4.0beta1
 Block user comment: N
 Private report:     N

 New Comment:

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));
}


Previous Comments:
------------------------------------------------------------------------
[2011-10-08 13:27:00] 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. 



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=55872&edit=1

Reply via email to