| Subject: | Re: Strange bit shifting result with gcc - am I missing something obvious? |
|---|---|
| From: | |
| Date: | Sun, 30 Mar 2008 19:39:53 -0400 |
| Newsgroups: | comp.lang.c |
Bartc <bc@xxxxxxxxxx> wrote: > > On the x86 at least, shifting a 32-bit register left by 32 is anyway a > no-operation (the register is unchanged). On the contrary, different processors in the x86 family behave differently. Some only look at the bottom 5 bits of the count (so a shift count of 32 is interpreted as 0 and 33 as 1) but others look at the entire value (so a shift count of 32 or greater zeros the register). -Larry Jones You're just trying to get RID of me, aren't you? -- Calvin |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Strange bit shifting result with gcc - am I missing something obvious?, lawrence . jones |
|---|---|
| Next by Date: | Re: ?: as an lvalue, Richard Heathfield |
| Previous by Thread: | Re: Strange bit shifting result with gcc - am I missing something obvious?, Gordon Burditt |
| Next by Thread: | Re: Strange bit shifting result with gcc - am I missing something obvious?, Gordon Burditt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |