Sourceware Bugzilla – Attachment 9847 Details for
Bug 21182
__memchr_sse2: regression in glibc-2.25 on i686
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
Test case
glibc-21182-tc.c (text/x-c), 828 bytes, created by
Leah Neukirchen
on 2017-02-22 21:18:47 UTC
(
hide
)
Description:
Test case
Filename:
MIME Type:
Creator:
Leah Neukirchen
Created:
2017-02-22 21:18:47 UTC
Size:
828 bytes
patch
obsolete
>#include <stdio.h> >#include <string.h> >#include <sys/mman.h> > >int main() { > char *src = mmap(0, 4096, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); > > printf("src = %p src+4096 = %p\n", src, src+4096); > printf("0 %p\n", memchr(src, 0x9B, 1)); > printf("1 %p\n", memchr(src+1, 0x9B, 1)); > printf("2 %p\n", memchr(src+2, 0x9B, 1)); > printf("3 %p\n", memchr(src+3, 0x9B, 1)); > printf("15 %p\n", memchr(src+15, 0x9B, 1)); > printf("16 %p\n", memchr(src+16, 0x9B, 1)); > printf("17 %p\n", memchr(src+17, 0x9B, 1)); > printf("4080 %p\n", memchr(src+4080, 0x9B, 1)); > printf("4081 %p\n", memchr(src+4081, 0x9B, 1)); > printf("4082 %p\n", memchr(src+4082, 0x9B, 1)); > printf("4083 %p\n", memchr(src+4083, 0x9B, 1)); > printf("4084 %p\n", memchr(src+4084, 0x9B, 1)); > printf("4094 %p\n", memchr(src+4094, 0x9B, 1)); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 21182
: 9847 |
9848