Merge branch 'master' into threaded

master
Avril 4 years ago
commit 217e8a3f4b
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -11,7 +11,8 @@ INCLUDE=include
COMMON_FLAGS= -W -Wall -pedantic -fno-strict-aliasing $(addprefix -I,$(INCLUDE))
OPT_FLAGS?= -march=native -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
MARCH?= -march=native
OPT_FLAGS?= $(MARCH) -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block \
-fno-stack-check

@ -15,7 +15,8 @@
static inline int sfread(void* out, size_t *restrict size, FILE* f)
{
return !!(*size = (size_t)fread(out, 1, *size, f));
register ssize_t r = fread(out, 1, *size, f);
return r < 0 ? (perror("failed to read from stdin"), 0) : !!(*size = (size_t)r);
}
static int fwrite_all(const void* _buf, size_t sz, size_t num, FILE* out)

Loading…
Cancel
Save