Mail Archives: djgpp/1998/06/30/09:03:12
"Arthur" <arfa AT clara DOT net> wrote:
> >No! if you apply >> and << to an unsigned you get logical stuff. The
> arithmetic
> >is used only for signeds.
>
>
> Ahh, I see. Can you not do it "manually", though?
Isn't "manually" is pretty automatic the shifts in C are designed to
allow power of 2 div/muls.
> Also, can you do a ROL/ROR
> in C or do you have to use inline ASM? And what about "shift with carry?"
As all these things are architecture dependent you must do it
with inline assembler.
I think they could be part of the language but the C core isn't a
thing that's changed often ;-).
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -