aboutsummaryrefslogtreecommitdiff
path: root/slurp.c
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-04-24 16:57:48 +1200
committerDavid Phillips <david@sighup.nz>2018-04-24 17:11:30 +1200
commit0755368f42c8f233c67528e398352a9de2bb33bf (patch)
treea7773108812640dafaa20ae7ad8ea5e084d9356c /slurp.c
parent2fec05364409258a28a77ede1552f1cdc3eabd24 (diff)
downloadsand-leek-0755368f42c8f233c67528e398352a9de2bb33bf.tar.xz
Improve host-side checks, fix MSB bug, misc tidying
Host-side check now uses from-scratch libssl SHA to confirm GPU work. Bug when most significant bit of the exponent is set turns out to be because of libssl's storage of such exponents requiring 5 bytes. This cannot be dynamically adjusted without adjusting the pre-calculated value which is hardcoded into the CL kernel for performance reasons (INITIAL_DATA_LEN)
Diffstat (limited to 'slurp.c')
-rw-r--r--slurp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/slurp.c b/slurp.c
index e98f48f..773fc48 100644
--- a/slurp.c
+++ b/slurp.c
@@ -17,7 +17,6 @@ char *slurp(FILE *f, size_t *size)
while (!feof(f)) {
nread = fread(&buffer[*size], 1, BUFFER_STEP, f);
*size += nread;
- fprintf(stderr, "size is %d\n",*size);
buffer = realloc(buffer, *size);
if (!buffer) {
perror("realloc");