Re: Zero-fill right shift.

From: Date: Tue, 03 Feb 2015 14:15:11 +0000
Subject: Re: Zero-fill right shift.
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-81713@lists.php.net to get a copy of this message
On 3 February 2015 at 13:54, Andrea Faulds <ajf@ajf.me> wrote: > Hi Leigh, > >> On 3 Feb 2015, at 13:51, Leigh <leight@gmail.com> wrote: >> No idea. Personally I'm opposed to the bigints implementation because >> of the implicit type auto-promotion. > > Huh? There’s no type promotion from a userland perspective, it’s entirely an implementation > detail. Yes, some integers may be IS_LONG and others may be IS_BIGINT internally, but that’s only > for Zend Engine 3 (might change in future), the boundary point varies by platform, and crucially, > you can’t distinguish them from userland. Aside from the breaks to some binary ops and once you hit the promotion breakpoint working with that integer is a lot slower. Lets not derail this thread into a discussion about why I dislike bigints.

« previous php.internals (#81713) next »