summaryrefslogtreecommitdiff
path: root/src/p18/functions.cc
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-05-07 02:18:07 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-05-07 02:18:07 +0300
commit7e743b73433475df086fcec81be7b10c1d695a42 (patch)
tree1737c5f9bdad2a40f740e9a655e510641331b9e2 /src/p18/functions.cc
initial
Diffstat (limited to 'src/p18/functions.cc')
-rw-r--r--src/p18/functions.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/p18/functions.cc b/src/p18/functions.cc
new file mode 100644
index 0000000..9799fc0
--- /dev/null
+++ b/src/p18/functions.cc
@@ -0,0 +1,12 @@
+// SPDX-License-Identifier: BSD-3-Clause
+
+#include "functions.h"
+
+namespace p18 {
+
+bool is_valid_parallel_id(unsigned id)
+{
+ return id >= 0 && id <= 6;
+}
+
+} \ No newline at end of file