summaryrefslogtreecommitdiff
path: root/5/part2_fast.c
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-12-22 00:27:40 +0100
committerBond_009 <bond.009@outlook.com>2020-12-22 00:27:40 +0100
commit1e0092d454d4243da23d421b35a02a5d80ec9d30 (patch)
treea475350f65d4ffb12e5f892d3ac3a4a3578bc5c4 /5/part2_fast.c
parent48c6bd9e5263b7b3953e48afe6c5928514787a0f (diff)
Improve assembly day 5
Diffstat (limited to '5/part2_fast.c')
-rw-r--r--5/part2_fast.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/5/part2_fast.c b/5/part2_fast.c
index 2334390..483dd8f 100644
--- a/5/part2_fast.c
+++ b/5/part2_fast.c
@@ -27,6 +27,9 @@ int column(const char *seat)
return end_res;
}
+#ifdef USE_ASM
+int seat_id(const char *seat);
+#else
int seat_id(const char *seat)
{
int end_res = 0;
@@ -45,6 +48,7 @@ int seat_id(const char *seat)
return end_res;
}
+#endif
int missing_seat_id(const char *filename)
{