Left/Right Shift?
Frank D. Engel, Jr.
fde101 at fjrhome.net
Mon Mar 7 10:29:50 EST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I don't think there is any such beast built-in to Rev, but this
*should* have equivalent functionality (though granted somewhat
slower):
function shift_left num, byBits
return num * (2 ^ byBits)
end shift_left
function shift_right num, byBits
return trunc(num / (2 ^ byBits))
end shift_right
On Mar 6, 2005, at 5:00 PM, N wrote:
>
> What are the key words aka operators that do a left/right shift (bits)?
>
> Kevin
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr. <fde101 at fjrhome.net>
$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten
Son, that whosoever believeth in him should not perish, but have
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCLHNu7aqtWrR9cZoRAvntAJ0W7D1LLciTcF9yiPVlhA9MKgx0UQCeJXMx
n8K6ciMwUMc2PPHVD1h0nPk=
=/51/
-----END PGP SIGNATURE-----
___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com
More information about the use-livecode
mailing list