Hello,
I need a shift function for integer numbers; is such a thing available in
Common-, ANSI-, or any LISP?
--
----------------------------------- cut here -----------------------------------
Gerhard Rieger eMail: ······@iue.tuwien.ac.at
Gusshausstrasse 27-29 Phone: +43/1/58801-5234
A-1040 Vienna
In article <···················@eueh31.tuwien.ac.at> ······@eueh31.tuwien.ac.at (Gerhard Rieger) writes:
> I need a shift function for integer numbers; is such a thing available in
> Common-, ANSI-, or any LISP?
> --
> ----------------------------------- cut here -----------------------------------
> Gerhard Rieger eMail: ······@iue.tuwien.ac.at
> Gusshausstrasse 27-29 Phone: +43/1/58801-5234
> A-1040 Vienna
Use (ash <integer> <count>). Positive count shifts left; negative right. See
page 360 of CLtL2.
Scott D. Anderson
········@cs.umass.edu
In article <···················@eueh31.tuwien.ac.at>,
······@iue.tuwien.ac.at wrote:
> I need a shift function for integer numbers; is such a thing available in
> Common-, ANSI-, or any LISP?
> --
ash
Karsten