aboutsummaryrefslogtreecommitdiff
path: root/chapters/pseudocode.adoc
diff options
context:
space:
mode:
authorDominic Symes <dominic.symes@arm.com>2022-11-04 18:00:03 +0000
committerEric Kunze <eric.kunze@arm.com>2022-12-05 19:18:51 +0000
commite4d6a1b99337f33cfaf343005e355ef7a68b2be9 (patch)
tree32ae772f418c53ad90e7f069caf59f51dfb7b6f0 /chapters/pseudocode.adoc
parent1cf84e95f85d510f55720fb98694530923ba9a1c (diff)
downloadspecification-e4d6a1b99337f33cfaf343005e355ef7a68b2be9.tar.gz
Add Levels defintion
Add definition of Level 1.0. Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: I1b34ae22396f273cc5ecdf99198fdbece6e2809c
Diffstat (limited to 'chapters/pseudocode.adoc')
-rw-r--r--chapters/pseudocode.adoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chapters/pseudocode.adoc b/chapters/pseudocode.adoc
index b931822..f4fd885 100644
--- a/chapters/pseudocode.adoc
+++ b/chapters/pseudocode.adoc
@@ -48,6 +48,12 @@ void ERROR_IF(condition) {
tosa_graph_result = tosa_error;
}
}
+
+void LEVEL_CHECK(condition) {
+ // If a level is specified and the level condition fails then
+ // the result is unpredictable.
+ REQUIRE(condition);
+}
----
=== Tensor Access Helpers