Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f0134f36
Commit
f0134f36
authored
Jun 13, 2016
by
Péter Szilágyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Godeps: pull in ethash with the big endian build fix
parent
ce88d419
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
18 deletions
+17
-18
Godeps.json
Godeps/Godeps.json
+2
-2
setup.py
Godeps/_workspace/src/github.com/ethereum/ethash/setup.py
+0
-0
endian.h
...ace/src/github.com/ethereum/ethash/src/libethash/endian.h
+14
-15
internal.c
...e/src/github.com/ethereum/ethash/src/libethash/internal.c
+1
-1
No files found.
Godeps/Godeps.json
View file @
f0134f36
...
...
@@ -20,8 +20,8 @@
},
{
"ImportPath"
:
"github.com/ethereum/ethash"
,
"Comment"
:
"v23.1-24
5-g25b32de
"
,
"Rev"
:
"2
5b32de0c0271065c28c3719c2bfe86959d72f0c
"
"Comment"
:
"v23.1-24
7-g2e80de5
"
,
"Rev"
:
"2
e80de5022370cfe632195b1720db52d07ff8a77
"
},
{
"ImportPath"
:
"github.com/fatih/color"
,
...
...
Godeps/_workspace/src/github.com/ethereum/ethash/setup.py
100644 → 100755
View file @
f0134f36
File mode changed from 100644 to 100755
Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/endian.h
View file @
f0134f36
...
...
@@ -19,7 +19,7 @@
# define BYTE_ORDER LITTLE_ENDIAN
#elif defined( __QNXNTO__ ) && defined( __BIGENDIAN__ )
# define BIG_ENDIAN 1234
# define BYTE_ORDER
BIG_ENDIAN
# define BYTE_ORDER BIG_ENDIAN
#else
# include <endian.h>
#endif
...
...
@@ -59,21 +59,20 @@
#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_) \
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)
#else
# error "endian not supported"
#endif // BYTE_ORDER
Godeps/_workspace/src/github.com/ethereum/ethash/src/libethash/internal.c
View file @
f0134f36
...
...
@@ -257,7 +257,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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment