aboutsummaryrefslogtreecommitdiff
path: root/chapters/ewise_ternary.adoc
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2022-12-05 12:07:40 +0000
committerEric Kunze <eric.kunze@arm.com>2022-12-09 15:52:08 +0000
commitb7293aedaea197acf1e5f93a0b450e6989c498d8 (patch)
tree62c90683b9478e26072ff8b3d9ca8156717bdb60 /chapters/ewise_ternary.adoc
parent36f2d64e38467dc02c632951ce564a35abcaa268 (diff)
downloadspecification-b7293aedaea197acf1e5f93a0b450e6989c498d8.tar.gz
SELECT: Replace use of cmp_t with bool_t
cmp_t is only used in the definition of SELECT and always defined to bool_t. This removes a special case in generators. Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: I9e7992bbfdf5c7fafdd55df90feb4dcbcdee2972
Diffstat (limited to 'chapters/ewise_ternary.adoc')
-rw-r--r--chapters/ewise_ternary.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapters/ewise_ternary.adoc b/chapters/ewise_ternary.adoc
index eb30a01..0b8097d 100644
--- a/chapters/ewise_ternary.adoc
+++ b/chapters/ewise_ternary.adoc
@@ -21,7 +21,7 @@ for_each(index in shape) {
dim_t index1 = apply_broadcast(shape, shape1, index);
dim_t index2 = apply_broadcast(shape, shape2, index);
dim_t index3 = apply_broadcast(shape, shape3, index);
- cmp_t value1 = tensor_read<cmp_t>(input1, shape1, index1);
+ bool_t value1 = tensor_read<bool_t>(input1, shape1, index1);
in_out_t value2 = tensor_read<in_out_t>(input2, shape2, index2);
in_out_t value3 = tensor_read<in_out_t>(input3, shape3, index3);
in_out_t result;