Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 144159 Details for
Bug 220417
Loading of SGI images is broken due to bad endian swap code
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to fix borked endian byteswapping
DevIL-1.6.8-rc2-il_endian_h.patch (text/plain), 788 bytes, created by
Scott A. Friedman
on 2006-12-21 03:51:48 UTC
(
hide
)
Description:
patch to fix borked endian byteswapping
Filename:
MIME Type:
Creator:
Scott A. Friedman
Created:
2006-12-21 03:51:48 UTC
Size:
788 bytes
patch
obsolete
>--- DevIL-1.6.8/src-IL/include/il_endian.h.orig 2006-12-21 03:40:57.000000000 +0000 >+++ DevIL-1.6.8/src-IL/include/il_endian.h 2006-12-21 03:33:34.000000000 +0000 >@@ -15,6 +15,10 @@ > > #include "il_internal.h" > >+#ifdef GCC_X86_ASM >+#include <byteswap.h> >+#endif >+ > #ifdef WORDS_BIGENDIAN //this is defined by ./configure > #ifndef __BIG_ENDIAN__ > #define __BIG_ENDIAN__ >@@ -101,9 +105,7 @@ > } > #else > #ifdef GCC_X86_ASM >- asm("ror $8,%0" >- : >- : "r" (*s) ); >+ *s = __bswap_16(*s); > #else > *s = ((*s)>>8) | ((*s)<<8); > #endif //GCC_X86_ASM >@@ -124,8 +126,7 @@ > } > #else > #ifdef GCC_X86_ASM >- asm("bswap %0;" >- : "=r" (*i) ); >+ *i = __bswap_32(*i); > #else > *i = ((*i)>>24) | (((*i)>>8) & 0xff00) | (((*i)<<8) & 0xff0000) | ((*i)<<24); > #endif //GCC_X86_ASM
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 220417
: 144159