Re: Zero-fill right shift.
| From: | Leigh | Date: | Tue, 03 Feb 2015 14:43:43 +0000 |
| Subject: | Re: Zero-fill right shift. | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-81715@lists.php.net to get a copy of this message | ||
On 3 February 2015 at 14:36, Andrea Faulds <ajf@ajf.me> wrote:
> I don’t know where you got that idea. The binary ops are consistent - they aren’t
> constrained by register size like in previous PHP versions, but they’re still completely
> consistent.
>
php -r 'var_dump(1 << 65);'
int(2)
Rotate left gets broken.
> It’s slower, yes, but that hardly matters. If people care so much about performance, why use
> PHP?
>
If people didn't care about performance, we wouldn't have phpng, or
any of the other work people have done to make the engine faster.
Sometimes you have to make the most of what you have available.