Re: [ANN] Lua 5.3.0 (work2) now available
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: [ANN] Lua 5.3.0 (work2) now available
- From: Roberto Ierusalimschy <roberto@...>
- Date: 2014年3月25日 16:05:35 -0300
> Addendum: Frankly it's easier to synthesize a logical shift out of an
> arithmetic shift than the other way around. It's an easier operation
> to mask out the high bits after an arithmetic shift than it is to test
> the high bits, shift, and then set afterward. The former requires a
> single extra operation; the latter requires either a conditional or a
> multiplication by a boolean followed by the same extra operation.
This is a good argument.
-- Roberto