Req #55872 [Com]: Zero filled right-shift

From: Date: Wed, 23 Nov 2011 22:28:44 +0000
Subject: Req #55872 [Com]: Zero filled right-shift
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165468@lists.php.net to get a copy of this message
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

« previous php.bugs (#165468) next »