Re: ?? shift left
Something like ...
function shift_bits(integer x, integer steps)
return x * power(2, -steps)
end function
where -ve steps move bits to the left, and +ve to the right.
------
Derek Parnell
Melbourne, Australia
"To finish a job quickly, go slower."
----- Original Message -----
From: "Chris Bensler" <bensler at mailops.com>
To: <EUforum at topica.com>
Sent: Monday, May 14, 2001 10:46 PM
Subject: RE: ?? shift left
>
> How about just shift_bits(x,steps)
> step could positive or negative..
>
> Chris
>
> stabmaster_ at HOTMAIL.COM wrote:
> > How about shl_bits(x, steps) and shr_bits(x, steps) in v. 2.3 ? Or
> > perhaps
> > it should be sal/sar since euphoria integers are signed..
> >
|
Not Categorized, Please Help
|
|