Skip to content

Commit 8cb4fc9

Browse files
committed
Added Pluck algo
1 parent 8d68e96 commit 8cb4fc9

11 files changed

+1299
-204
lines changed

AUTHORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ updated by many others.
5353
* Perry Huang <perryh>
5454
* Joseph Bruggeman <jbruggeman>
5555
* Badman74 <badman74>
56+
* djm34 <djm4>
5657

5758
...and many others. See:
5859

Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ sgminer_SOURCES += algorithm/whirlcoin.c algorithm/whirlcoin.h
7070
sgminer_SOURCES += algorithm/neoscrypt.c algorithm/neoscrypt.h
7171
sgminer_SOURCES += algorithm/whirlpoolx.c algorithm/whirlpoolx.h
7272
sgminer_SOURCES += algorithm/lyra2re.c algorithm/lyra2re.h algorithm/lyra2.c algorithm/lyra2.h algorithm/sponge.c algorithm/sponge.h
73+
sgminer_SOURCES += algorithm/pluck.c algorithm/pluck.h
7374

7475
bin_SCRIPTS = $(top_srcdir)/kernel/*.cl
7576

algorithm.c

+157-132
Large diffs are not rendered by default.

algorithm.h

+6-5
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ typedef enum {
2626
ALGO_FRESH,
2727
ALGO_WHIRL,
2828
ALGO_NEOSCRYPT,
29-
ALGO_LYRA2RE
29+
ALGO_LYRA2RE,
30+
ALGO_PLUCK
3031
} algorithm_type_t;
3132

3233
extern const char *algorithm_type_str[];
@@ -59,10 +60,10 @@ typedef struct _algorithm_t {
5960
size_t n_extra_kernels;
6061
long rw_buffer_size;
6162
cl_command_queue_properties cq_properties;
62-
void (*regenhash)(struct work *);
63-
cl_int (*queue_kernel)(struct __clState *, struct _dev_blk_ctx *, cl_uint);
64-
void (*gen_hash)(const unsigned char *, unsigned int, unsigned char *);
65-
void (*set_compile_options)(struct _build_kernel_data *, struct cgpu_info *, struct _algorithm_t *);
63+
void(*regenhash)(struct work *);
64+
cl_int(*queue_kernel)(struct __clState *, struct _dev_blk_ctx *, cl_uint);
65+
void(*gen_hash)(const unsigned char *, unsigned int, unsigned char *);
66+
void(*set_compile_options)(struct _build_kernel_data *, struct cgpu_info *, struct _algorithm_t *);
6667
} algorithm_t;
6768

6869
/* Set default parameters based on name. */

0 commit comments

Comments
 (0)