• Andrew Morton's avatar
    [PATCH] access_ok is likely · 2c2f8449
    Andrew Morton authored
    From Manfred
    
    While trying to figure out why sysv msg is around 30% slower than pipes for
    data transfers I noticed that gcc's autodetection (3.2.2) guesses the
    "if(access_ok())" tests in uaccess.h wrong and puts the error memset into the
    direct path and the copy out of line.
    
    So tell the compiler that access_ok() is likely to be true.
    2c2f8449
uaccess.h 15.9 KB