Quantcast
Channel: lkml.org : Pallipadi, Venkatesh
Viewing all articles
Browse latest Browse all 864

Re: x86/asm: __clear_user() micro-optimization (was: "Re: [GIT PUL ...

$
0
0
Linus Torvalds writes: (Summary) On Tue, Jun 5, 2018 at 4:20 PM Alexey Dobriyan <adobriyan@gmail.com> Yeah, odd.
Yeah, odd.
Here's the benchmark I used:
Here's the benchmark I used:
#define SIZE 4068
#define SIZE 4068
int main(int argc, char **argv)
  {
    int i; jne 1b"
            : [mem] "=r" (p)
            : [zero] "i" (0l), [eight] "i" (8l),
             "0" (buffer), [count] "r" (SIZE/8));
  }

where you can change that "i" for [zero] and [eight] to be "r" to get
the register version.

Viewing all articles
Browse latest Browse all 864

Trending Articles