aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators/GREATER.tosac
diff options
context:
space:
mode:
authorKevin Petit <kevin.petit@arm.com>2024-01-23 19:09:29 +0000
committerKevin Petit <kevin.petit@arm.com>2024-01-23 19:09:29 +0000
commitf9fcb61e143bde28fd14bcbbdb97120f5afdbfb7 (patch)
treed2579608bdd59ceaf72d27642361da7e0282e626 /pseudocode/operators/GREATER.tosac
parente340233191a34285856f5bcb313df397982c95ef (diff)
downloadspecification-f9fcb61e143bde28fd14bcbbdb97120f5afdbfb7.tar.gz
pseudocode: use true/false consistently for boolean values
- Some operators were using True and False. - Document the use of true and false in the definition of the boolean number format. Signed-off-by: Kevin Petit <kevin.petit@arm.com> Change-Id: Ic4c16c8527d46ca01d22e3c70c5371821a726df8
Diffstat (limited to 'pseudocode/operators/GREATER.tosac')
-rw-r--r--pseudocode/operators/GREATER.tosac4
1 files changed, 2 insertions, 2 deletions
diff --git a/pseudocode/operators/GREATER.tosac b/pseudocode/operators/GREATER.tosac
index af8b4c9..3155f23 100644
--- a/pseudocode/operators/GREATER.tosac
+++ b/pseudocode/operators/GREATER.tosac
@@ -15,8 +15,8 @@ for_each(index in shape) {
in_t value2 = tensor_read<in_t>(input2, shape2, index2);
out_t result;
if (isNaN(value1) || isNaN(value2))
- result = False;
+ result = false;
else
- result = (value1 > value2) ? True : False;
+ result = (value1 > value2) ? true : false;
tensor_write<out_t>(output, shape, index, result);
}