Jeff Garzik
1083e15c47
Mark hash success as unlikely, using __builtin_expect() intrinsic
2011-02-17 01:22:55 -05:00
Jeff Garzik
9f3472ad19
Use bswap_32 from byteswap.h, if __builtin_bswap() is not available
2011-02-10 00:52:22 -05:00
Jeff Garzik
c0935a9489
Re-use CURL object, thereby caching DNS and HTTP connections where possible.
2011-02-10 00:41:44 -05:00
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.
2011-02-03 00:46:55 -05:00
Jeff Garzik
c68ffb30dd
Display proof-of-work hash when one is discovered
2011-02-02 18:47:04 -05:00
Jeff Garzik
0b67740707
Pass max-nonce as arg to each sha256 algo.
...
Should be an equivalent transformation, with no behavior changes.
2011-01-29 00:56:24 -05:00
Jeff Garzik
a296799358
Replace ___constant_swab32() with gcc's __builtin_bswap32
...
http://www.bitcoin.org/smf/index.php?topic=1925.msg34827#msg34827
Credit: lfm
2011-01-29 00:41:27 -05:00
Jeff Garzik
970e74c07d
Move 32-bit swap code into miner.h, for sharing.
2010-12-26 23:37:58 -05:00
Jeff Garzik
d88648dd39
sha256_via: ensure that found nonce is copied back into output data buffer
...
Also, some minor cleanups, removing unused args.
2010-12-23 20:21:00 -05:00
Jeff Garzik
f1fcd76ba7
sha256_cryptopp: Add crypto++ 32-bit assembly implementation
2010-12-06 20:14:58 -05:00
Jeff Garzik
74bb196296
Add Crypto++ sha256 implementation (C only, ASM elided for now)
2010-11-28 20:16:22 -05:00
Jeff Garzik
339ddf4d75
Move sha256_generic into its own .o build output. Const-ify midstate param.
2010-11-27 04:31:32 -05:00
Jeff Garzik
4da2e4fbe2
miner.h: include sys/time.h for struct timeval definition
2010-11-27 01:59:03 -05:00
Jeff Garzik
e2eeaaf75b
Add experimental (read: probably broken) VIA padlock support.
2010-11-27 01:29:56 -05:00
Jeff Garzik
86eb37d631
Improve and modularize compile-time CPU detection.
...
Ideally, we should move this to autoconf.
2010-11-27 00:46:59 -05:00
Jeff Garzik
35ea649d97
Improve hash performance statistics.
2010-11-26 23:12:24 -05:00
Jeff Garzik
c639149977
Add tcatm's 4way SSE2 sha256 implementation.
2010-11-26 19:04:48 -05:00
Jeff Garzik
b7cc9b68ad
Replace argp with getopt_long
2010-11-26 15:46:11 -05:00
Jeff Garzik
945be82ea1
Move utility routines to util.c.
2010-11-25 04:03:59 -05:00