day2: start part2

Fortune for day2's current commit: Small blessing − 小吉
master
Avril 3 years ago
parent 730e955415
commit 95c08c59e7
Signed by: flanchan
GPG Key ID: 284488987C31F630

@ -14,8 +14,7 @@ INPUT_DEST=src/input.c
COMMON_FLAGS+= -W -Wall -fno-strict-aliasing $(addprefix -I,$(INCLUDE))
COMMON_FLAGS+=-msse -msse2 -msse3
COMMON_FLAGS+=-D_PART1
#-D_PART2
COMMON_FLAGS+=-D_PART1 -D_PART2
OPT_FLAGS?= -march=native -fgraphite -fopenmp -floop-parallelize-all -ftree-parallelize-loops=4 \
-floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block \

@ -11,6 +11,9 @@ typedef int64_t result_t;
#define SUM_FIELDS 3
// Processing for p1 and p2, will be defined in p1.c, and maybe p2.c?
struct proc;
struct psum {
union {
struct { result_t forward, up, down; };

@ -10,10 +10,15 @@
#define RIMAX_STR (64 - sizeof(size_t))
struct proc {
union {
struct {
result_t mv;
off_t field;
// void* jmp;
};
struct {
//TODO: part2 shit
} aimed;
};
};
#define _LIT_MV_FORWARD "forward"

Loading…
Cancel
Save