aboutsummaryrefslogtreecommitdiff
path: root/pseudocode/operators/tables/SIGMOID.tosac
diff options
context:
space:
mode:
Diffstat (limited to 'pseudocode/operators/tables/SIGMOID.tosac')
-rw-r--r--pseudocode/operators/tables/SIGMOID.tosac2
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudocode/operators/tables/SIGMOID.tosac b/pseudocode/operators/tables/SIGMOID.tosac
index dad1e1d..c13d5ee 100644
--- a/pseudocode/operators/tables/SIGMOID.tosac
+++ b/pseudocode/operators/tables/SIGMOID.tosac
@@ -8,7 +8,7 @@
// by a licensing agreement from ARM Limited.
int16_t sigmoid_reference(int16_t x) { // input x range is -256 to + 256 inclusive
- fp64_t v = (fp64_t)x / (fp64_t)16;
+ fp64_t v = static_cast<fp64_t>(x) / static_cast<fp64_t>(16);
v = 1.0/(1.0 + exp(-v));
return round_to_nearest_int(32768.0 * v);
}