FreeBSD Bugzilla – Attachment 201564 Details for
Bug 235358
net-p2p/qtum: fix build with GCC-based architectures
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
qtum.patch (text/plain), 2.90 KB, created by
Piotr Kubaj
on 2019-01-31 19:09:27 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Piotr Kubaj
Created:
2019-01-31 19:09:27 UTC
Size:
2.90 KB
patch
obsolete
>Index: files/patch-src_cpp-ethereum_libethash_endian.h >=================================================================== >--- files/patch-src_cpp-ethereum_libethash_endian.h (nonexistent) >+++ files/patch-src_cpp-ethereum_libethash_endian.h (working copy) >@@ -0,0 +1,26 @@ >+--- src/cpp-ethereum/libethash/endian.h.orig 2019-01-31 14:50:45 UTC >++++ src/cpp-ethereum/libethash/endian.h >+@@ -55,20 +55,10 @@ >+ >+ #define fix_endian32(dst_, src_) dst_ = ethash_swap_u32(src_) >+ #define fix_endian32_same(val_) val_ = ethash_swap_u32(val_) >+-#define fix_endian64(dst_, src_) dst_ = ethash_swap_u64(src_ >++#define fix_endian64(dst_, src_) dst_ = ethash_swap_u64(src_) >+ #define fix_endian64_same(val_) val_ = ethash_swap_u64(val_) >+-#define fix_endian_arr32(arr_, size_) \ >+- do { \ >+- for (unsigned i_ = 0; i_ < (size_), ++i_) { \ >+- arr_[i_] = ethash_swap_u32(arr_[i_]); \ >+- } \ >+- while (0) >+-#define fix_endian_arr64(arr_, size_) \ >+- do { \ >+- for (unsigned i_ = 0; i_ < (size_), ++i_) { \ >+- arr_[i_] = ethash_swap_u64(arr_[i_]); \ >+- } \ >+- while (0) \ >++#define fix_endian_arr32(arr_, size_) for (unsigned i_ = 0; i_ < (size_); ++i_) arr_[i_] = ethash_swap_u32(arr_[i_]) >++#define fix_endian_arr64(arr_, size_) for (unsigned i_ = 0; i_ < (size_); ++i_) arr_[i_] = ethash_swap_u64(arr_[i_]) >+ >+ #else >+ # error "endian not supported" > >Property changes on: files/patch-src_cpp-ethereum_libethash_endian.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 >Index: files/patch-src_cpp-ethereum_libethash_internal.c >=================================================================== >--- files/patch-src_cpp-ethereum_libethash_internal.c (nonexistent) >+++ files/patch-src_cpp-ethereum_libethash_internal.c (working copy) >@@ -0,0 +1,20 @@ >+--- src/cpp-ethereum/libethash/internal.c.orig 2019-01-31 14:52:30 UTC >++++ src/cpp-ethereum/libethash/internal.c >+@@ -220,7 +220,7 @@ static bool ethash_hash( >+ ethash_light_t const light, >+ uint64_t full_size, >+ ethash_h256_t const header_hash, >+- uint64_t const nonce >++ uint64_t nonce >+ ) >+ { >+ if (full_size % MIX_WORDS != 0) { >+@@ -328,7 +328,7 @@ static bool ethash_hash( >+ void ethash_quick_hash( >+ ethash_h256_t* return_hash, >+ ethash_h256_t const* header_hash, >+- uint64_t const nonce, >++ uint64_t nonce, >+ ethash_h256_t const* mix_hash >+ ) >+ { > >Property changes on: files/patch-src_cpp-ethereum_libethash_internal.c >___________________________________________________________________ >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
Actions:
View
|
Diff
Attachments on
bug 235358
: 201564