An easy question for everyone

S

Simon.Tiplady

In the following code what does >> represent?

{
do
{
a = In1;
b = In2;
}until (start);

t1 = mod(a);
t2 = mod(b);
x = max(t1,t2);
y = min(t1,t2);
t3 = x >> 3;
t4 = y >> 1;
...
...
}

I`m not bothered about the purpose of the code but what does "t3 = x >>
3" mean?
Is t3 = 1 when x > 3
and t3 = 0 when x < 3?


Thanks,

p.s. quick response please I have an exam on this subject very soon!!!
 
S

Simon.Tiplady

Oops silly me, its just a shift function.

x>>3 shifts the binary complement number 3 to the right
y>>1 shifts 1 position to the right

Simon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top