[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] strange c

From: Mike Jones
Subject: Re: [avr-gcc-list] strange c
Date: Tue, 18 Dec 2001 07:59:01 +0600

That should shift a single 1 to the left the number of bits that TOIE1 is
valued. Your example shifts all the bits in a variable a fixed number of
places to the left. The question's example takes a value of 1 ( a single
1-bit in the bit 0 position) and shifts it to the left TOIE1 times. You
can also just think of it as setting bit number TOIE1 to a 1.


>im a bit new to low-level c, but what does e.g 1<<TOIE1 do ?
>>From the languege reference i know the shift operator to use like value<<1

>but not the other way around.
>Torsten Hahn
>TU Bergakademie Freiberg - Institut für Experimentelle Physik
>Silbermannstraße 1, 09596 Freiberg
>mail: address@hidden
>phone: +49 3731 392670
>avr-gcc-list mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]