[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Some thoughts on integer exponentiation (and an implementation)
- From: Stefan Ginsberg <stefanginsberg@...>
- Date: Mon, 15 May 2017 08:58:49 +0200
> On 15 May 2017, at 01:13, Sean Conner <firstname.lastname@example.org> wrote:
> Shifting is just multiplication or division by two. At the CPU level,
> there is a distinction made between shifts (left (multiplication) which
> shifts in 0s and right (division) which shifts in the sign bit) and rotates
> (shifts the bits, rotating in the carry bit).
What I really meant is that a shift operator which disallows shifting out (all) bits would be less-than-useful.