sha256_via: add further comments on byte-swapping work
This commit is contained in:
parent
4da2e4fbe2
commit
eeea340b17
1 changed files with 2 additions and 0 deletions
|
@ -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,
|
/* bitcoin gives us big endian input, but via wants LE,
|
||||||
* so we reverse the swapping bitcoin has already done (extra work)
|
* 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++) {
|
for (i = 0; i < 128/4; i++) {
|
||||||
uint32_t *data32 = (uint32_t *) data;
|
uint32_t *data32 = (uint32_t *) data;
|
||||||
|
|
Loading…
Reference in a new issue