summaryrefslogtreecommitdiff
path: root/aisa/eval.h
diff options
context:
space:
mode:
authorJulian Blake Kongslie2022-06-25 19:30:03 -0700
committerJulian Blake Kongslie2022-06-25 19:30:03 -0700
commit1ecef319d7c8a07073fb37c3b88e3ccce8c94c97 (patch)
treee08c68a34be268febf6e2d999ea420e21ae34a7b /aisa/eval.h
parentReorganize Makefile. (diff)
downloadissim-1ecef319d7c8a07073fb37c3b88e3ccce8c94c97.tar.xz
Remove aisa::suspend() which was trivial.
Diffstat (limited to 'aisa/eval.h')
-rw-r--r--aisa/eval.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/aisa/eval.h b/aisa/eval.h
index f97740c..6d65520 100644
--- a/aisa/eval.h
+++ b/aisa/eval.h
@@ -1,5 +1,7 @@
1#pragma once 1#pragma once
2 2
3#include <coroutine>
4
3#include "aisa/aisa.h" 5#include "aisa/aisa.h"
4 6
5namespace aisa { 7namespace aisa {
@@ -12,7 +14,7 @@ namespace aisa {
12 while (true) { 14 while (true) {
13 if (auto rv = crtp().load_reg(rn); rv.has_value()) 15 if (auto rv = crtp().load_reg(rn); rv.has_value())
14 co_return *rv; 16 co_return *rv;
15 co_await suspend(); 17 co_await std::suspend_always{};
16 } 18 }
17 } 19 }
18 20
@@ -21,7 +23,7 @@ namespace aisa {
21 while (true) { 23 while (true) {
22 if (crtp().store_reg(rn, rv)) 24 if (crtp().store_reg(rn, rv))
23 co_return; 25 co_return;
24 co_await suspend(); 26 co_await std::suspend_always{};
25 } 27 }
26 } 28 }
27 29