From 5fed2fdcf74ae94cc61a3c188d85631ce6182ef9 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 14 Dec 2020 01:27:02 -0500 Subject: "Allocate" only 4 MB rather than 1 TB for day 14 part 2 There are <512 writes in the input data, and at most 9 bits floating. Doesn't really matter much, though. --- 2020/day14.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2020/day14.c b/2020/day14.c index a40bb3f..638ca35 100644 --- a/2020/day14.c +++ b/2020/day14.c @@ -16,7 +16,7 @@ static void write(ul addr, ul val) { writes[len].addr = addr; writes[len++].val = val; } -static struct Write writes2[0xFFFFFFFFF]; +static struct Write writes2[512 * (1 << 9)]; static ul len2; static void write2(ul addr, ul val) { for (int i = 0; i < len2; ++i) { -- cgit 1.4.1