Commit graph

28 commits

Author SHA1 Message Date
Jeff Garzik
23e9cf91f0 Ensure cpuminer-config.h is universally included, in *.c and *.h alike.
In miner.h, this fixes an alloca-definition-related warning.

For the other files, this is simply future-proofing/precaution.
2011-03-20 22:44:25 -04:00
Jeff Garzik
24afd61775 Introduce more standardized logging (incl. optional syslog).
Also, improve portability of alloca.
2011-03-18 17:24:16 -04:00
Jeff Garzik
7a87bee999 Add long polling support 2011-03-18 02:53:13 -04:00
Jeff Garzik
33e5b54928 miner.h: pad out work_restart to max likely cache line size 2011-03-17 23:19:43 -04:00
Jeff Garzik
2d49a9a5d7 Introduce ability to interrupt hash scanners in the middle of scanning. 2011-03-17 22:02:28 -04:00
Jeff Garzik
0258fae450 Fix Windows build, that broke with yasm integration 2011-03-14 23:36:28 -04:00
Jeff Garzik
4f7a51e9ed Move all RPC I/O to separate thread. 2011-03-14 23:17:34 -04:00
Jeff Garzik
6b19b15aa9 Fix warnings in sse2_64 implementation. 2011-03-07 00:23:12 -05:00
Mark Crichton
96d2287c72 X86_64 SSE2 support for Linux 2011-03-06 23:49:00 -05:00
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