On 30 May 2012 16:31, Joran Greef <[email protected]> wrote:
> I figured that XOR on 8-bit integers would be faster than XOR on 16-bit
> integers would be faster than XOR on 24-bit integers would be faster than
> XOR on 32-bit integers, but did not anticipate such a difference between
> 31-bit and 32-bit integers.

V8, like many other GCed languages, uses a tagged integer
representation. Small integers can be unboxed into a 32-bit word, but
1 bit is reserved for the tag bit. For 32 bit wide integers, you need
the boxed representation.

/Andreas

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to