diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-11-27 03:45:47 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-11-27 03:45:47 -0500 |
commit | eeea340b17302c3b82d29a7d2f50238cd1b24af4 (patch) | |
tree | 857785ec4e3a7b5a3e3e7009e9f92afa3690a53a /sha256_via.c | |
parent | 4da2e4fbe25e0053a155d026121d645dc660f549 (diff) |
sha256_via: add further comments on byte-swapping work
Diffstat (limited to 'sha256_via.c')
-rw-r--r-- | sha256_via.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sha256_via.c b/sha256_via.c index c03495b..8becfd7 100644 --- a/sha256_via.c +++ b/sha256_via.c @@ -42,6 +42,8 @@ bool scanhash_via(unsigned char *midstate, const unsigned char *data_in, /* bitcoin gives us big endian input, but via wants LE, * so we reverse the swapping bitcoin has already done (extra work) + * in order to permit the hardware to swap everything + * back to BE again (extra work). */ for (i = 0; i < 128/4; i++) { uint32_t *data32 = (uint32_t *) data; |