GCC Bugzilla – Attachment 30816 Details for
Bug 55342
[4.9 Regression] [LRA,x86] Non-optimal code for simple loop with LRA
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
test-case to reproduce
t1.c (text/plain), 567 bytes, created by
Yuri Rumyantsev
on 2013-09-13 13:03:04 UTC
(
hide
)
Description:
test-case to reproduce
Filename:
MIME Type:
Creator:
Yuri Rumyantsev
Created:
2013-09-13 13:03:04 UTC
Size:
567 bytes
patch
obsolete
>#define byte unsigned char >#define MIN(a, b) ((a) > (b)?(b):(a)) >void convert_image(byte *in, byte *out, int size) { > int i; > byte * read = in, > * write = out; > > for(i = 0; i < size; i++) { > byte r = *read++; > byte g = *read++; > byte b = *read++; > byte c, m, y, k, tmp; > c = 255 - r; > m = 255 - g; > y = 255 - b; > if (c < m) > k = MIN (c, y); > else > k = MIN (m, y); > *write++ = c - k; > *write++ = m - k; > *write++ = y - k; > *write++ = k; > } >}
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 55342
:
30751
| 30816