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(-) (limited to '2020') 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 ted'>master dontfiles
summary refs log tree commit diff
path: root/.ncmpcpp/bindings (unfollow)
Commit message (Collapse)Author
2013-10-31Fix host in promptJune McEnroe
2013-10-31Wow look reorganized zsh configJune McEnroe
2013-10-30Show hostname in prompt over SSHJune McEnroe
2013-10-30Only load chruby if it existsJune McEnroe
2013-10-27Add auto-title stuff to zshJune McEnroe
2013-10-26Add gvim alias to silence stderrJune McEnroe
2013-10-26Add home.programble.me functionJune McEnroe
2013-10-14Remove unused configsJune McEnroe
2013-10-14Add therefore, because, cards compose sequencesJune McEnroe
2013-10-14Global git ignore .swo filesJune McEnroe
2013-10-14Add Heroku to zshJune McEnroe
2013-09-23Add gst git stash aliasJune McEnroe
2013-09-05Remove pacman stuffJune McEnroe
Goodbye Arch.
2013-09-05Only alias hub if it existsJune McEnroe
2013-09-05chruby to ruby-2.0.0June McEnroe
2013-08-14Add nvmJune McEnroe
2013-07-09Add title commandJune McEnroe
2013-06-09Use default client keysJune McEnroe
2013-06-09Run games in separate X serverJune McEnroe
2013-06-08Add game wrapper to kill/restart unclutterJune McEnroe
2013-06-08Add git configJune McEnroe