summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjonsykkel <jonrevold@gmail.com>2020-04-06 09:01:04 +0200
committerjonsykkel <jonrevold@gmail.com>2020-04-06 09:01:04 +0200
commit33a5f5e5c369fd79a794559510464bbb85cf087d (patch)
tree0070023efe6aa584b1b0e7acca32916ba54c5e50
parenta6f0452ef3b445bd7537d6920c60bf18de956750 (diff)
downloadct_sequence-idiot.tar.gz
-rw-r--r--makefile7
-rw-r--r--src/main.c5
2 files changed, 5 insertions, 7 deletions
diff --git a/makefile b/makefile
index 2617403..9020605 100644
--- a/makefile
+++ b/makefile
@@ -26,8 +26,9 @@ bin := $(bin_dir)/$(out_file)
ifneq ($(MSYSTEM),)
bin := $(bin).exe
- LDFLAGS += -static
- RELFLAGS := -s -mwindows
+ #LDFLAGS += -static
+ #RELFLAGS := -s -mwindows
+ RELFLAGS := -s
else
RELFLAGS :=
endif
@@ -77,7 +78,7 @@ endif
ifeq ($(CC),clang)
CFLAGS += -fcolor-diagnostics -fansi-escape-codes
LDFLAGS := $(filter-out -pthread,$(LDFLAGS))
- LDLIBS += -lpthread
+ #LDLIBS += -lpthread
endif
rwildcard = $(wildcard $1$2) $(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2))
diff --git a/src/main.c b/src/main.c
index fce4b04..50c0319 100644
--- a/src/main.c
+++ b/src/main.c
@@ -10,8 +10,7 @@
#define SIZE (sizeof(uint8_t)*W*(MAXT+1))
static uint8_t *m;
-//static uint8_t m[SIZE];
-static uint64_t t = 0;
+static uint64_t t = 0;
static void iner(uint32_t x){
uint32_t z;
@@ -22,11 +21,9 @@ static void iner(uint32_t x){
memcpy(&z,p,W);
memcpy(p,&x,W);
t = z == 0x00FFFFFF ? 0 : x-z;
- //printf("%10u %10u\n",t,x);
}
int main(int argc,char **argv){
-
//m = calloc(SIZE,1);
//m = malloc(SIZE);
m = _aligned_malloc(SIZE,4096);