Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161026808
D21054.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D21054.diff
View Options
Index: head/devel/crc32c/Makefile
===================================================================
--- head/devel/crc32c/Makefile
+++ head/devel/crc32c/Makefile
@@ -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: head/devel/crc32c/files/patch-src_crc32c__read__le.h
===================================================================
--- head/devel/crc32c/files/patch-src_crc32c__read__le.h
+++ head/devel/crc32c/files/patch-src_crc32c__read__le.h
@@ -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.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jun 30, 11:08 PM (20 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34529122
Default Alt Text
D21054.diff (2 KB)
Attached To
Mode
D21054: devel/crc32c: fix build on big-endian architectures
Attached
Detach File
Event Timeline
Log In to Comment