FreeBSD Bugzilla – Attachment 206029 Details for
Bug 239420
devel/crc32c: fix build on big-endian architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
crc32c.patch (text/plain), 2.49 KB, created by
Piotr Kubaj
on 2019-07-24 07:30:19 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-07-24 07:30:19 UTC
Size:
2.49 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 507155) >+++ Makefile (working copy) >@@ -11,7 +11,7 @@ > LICENSE= BSD3CLAUSE > LICENSE_FILE= ${WRKSRC}/LICENSE > >-USES= cmake >+USES= cmake compiler:c++11-lang > USE_GITHUB= yes > GH_ACCOUNT= google > USE_LDCONFIG= yes >Index: files/patch-src_crc32c__read__le.h >=================================================================== >--- files/patch-src_crc32c__read__le.h (nonexistent) >+++ files/patch-src_crc32c__read__le.h (working copy) >@@ -0,0 +1,25 @@ >+--- src/crc32c_read_le.h.orig 2019-07-24 07:21:23 UTC >++++ src/crc32c_read_le.h >+@@ -30,14 +30,14 @@ inline uint32_t ReadUint32LE(const uint8_t* buffer) { >+ // Reads a little-endian 64-bit integer from a 64-bit-aligned buffer. >+ inline uint64_t ReadUint64LE(const uint8_t* buffer) { >+ #if BYTE_ORDER_BIG_ENDIAN >+- return ((static_cast<uint32_t>(static_cast<uint8_t>(buffer[0]))) | >+- (static_cast<uint32_t>(static_cast<uint8_t>(buffer[1])) << 8) | >+- (static_cast<uint32_t>(static_cast<uint8_t>(buffer[2])) << 16) | >+- (static_cast<uint32_t>(static_cast<uint8_t>(buffer[3])) << 24) | >+- (static_cast<uint32_t>(static_cast<uint8_t>(buffer[4])) << 32) | >+- (static_cast<uint32_t>(static_cast<uint8_t>(buffer[5])) << 40) | >+- (static_cast<uint32_t>(static_cast<uint8_t>(buffer[6])) << 48) | >+- (static_cast<uint32_t>(static_cast<uint8_t>(buffer[7])) << 56)); >++ return ((static_cast<uint64_t>(static_cast<uint8_t>(buffer[0]))) | >++ (static_cast<uint64_t>(static_cast<uint8_t>(buffer[1])) << 8) | >++ (static_cast<uint64_t>(static_cast<uint8_t>(buffer[2])) << 16) | >++ (static_cast<uint64_t>(static_cast<uint8_t>(buffer[3])) << 24) | >++ (static_cast<uint64_t>(static_cast<uint8_t>(buffer[4])) << 32) | >++ (static_cast<uint64_t>(static_cast<uint8_t>(buffer[5])) << 40) | >++ (static_cast<uint64_t>(static_cast<uint8_t>(buffer[6])) << 48) | >++ (static_cast<uint64_t>(static_cast<uint8_t>(buffer[7])) << 56)); >+ #else // !BYTE_ORDER_BIG_ENDIAN >+ uint64_t result; >+ // This should be optimized to a single instruction. > >Property changes on: files/patch-src_crc32c__read__le.h >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
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
Flags:
pkubaj
:
maintainer-approval?
(
amzo1337
)
Actions:
View
|
Diff
Attachments on
bug 239420
: 206029