lkml.org 
[lkml]   [2003]   [Jul]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: Interrupt doesn't make it to the 8259 on a ASUS P4PE mobo
    From
    Date
    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/

    \
     
     \ /
      Last update: 2005-03-22 13:47    [W:5.780 / U:0.168 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site