Messages in this thread | | | Subject | Re: Interrupt doesn't make it to the 8259 on a ASUS P4PE mobo | From | Jeremy Fitzhardinge <> | Date | 20 Jul 2003 15:25:04 -0700 |
| |
On Sun, 2003-07-20 at 14:04, Riley Williams wrote: > When I did the "Assembler Language Maths Logic" module for my degree, > we learned that processors used SRL (Shift Right Logical) to divide > unsigned numbers by powers of 2, and SRA (Shift Right Arithmetic) to > divide signed numbers by powers of 2. Can't GCC handle that?
Sure it can, but >>1 isn't the same as /2 for signed numbers.
(Hint: -1 / 2 != -1)
J
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |