Jeff Garzik
714c0fd7c9
Continue scanhash, even if high 32 bits are zero.
...
Previously, we would stop the scan if the high 32 bits of the hash were zero,
as a quick shortcut for testing the full hash. If this quick test succeeded,
we would pass the work to the server for full validation.
Change this logic to perform full validation inside minerd, so that work may
be resumed more quickly if hash > target.
14 years ago
Jeff Garzik
c68ffb30dd
Display proof-of-work hash when one is discovered
14 years ago
Jeff Garzik
0b67740707
Pass max-nonce as arg to each sha256 algo.
...
Should be an equivalent transformation, with no behavior changes.
14 years ago
Jeff Garzik
a296799358
Replace ___constant_swab32() with gcc's __builtin_bswap32
...
http://www.bitcoin.org/smf/index.php?topic=1925.msg34827#msg34827
Credit: lfm
14 years ago
Jeff Garzik
970e74c07d
Move 32-bit swap code into miner.h, for sharing.
14 years ago
Jeff Garzik
d88648dd39
sha256_via: ensure that found nonce is copied back into output data buffer
...
Also, some minor cleanups, removing unused args.
14 years ago
Jeff Garzik
f1fcd76ba7
sha256_cryptopp: Add crypto++ 32-bit assembly implementation
14 years ago
Jeff Garzik
74bb196296
Add Crypto++ sha256 implementation (C only, ASM elided for now)
14 years ago
Jeff Garzik
339ddf4d75
Move sha256_generic into its own .o build output. Const-ify midstate param.
14 years ago
Jeff Garzik
4da2e4fbe2
miner.h: include sys/time.h for struct timeval definition
14 years ago
Jeff Garzik
e2eeaaf75b
Add experimental (read: probably broken) VIA padlock support.
14 years ago
Jeff Garzik
86eb37d631
Improve and modularize compile-time CPU detection.
...
Ideally, we should move this to autoconf.
14 years ago
Jeff Garzik
35ea649d97
Improve hash performance statistics.
14 years ago
Jeff Garzik
c639149977
Add tcatm's 4way SSE2 sha256 implementation.
14 years ago
Jeff Garzik
b7cc9b68ad
Replace argp with getopt_long
14 years ago
Jeff Garzik
945be82ea1
Move utility routines to util.c.
14 years ago