diff options
Diffstat (limited to 'pseudocode/operators/tables/TANH.tosac')
-rw-r--r-- | pseudocode/operators/tables/TANH.tosac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pseudocode/operators/tables/TANH.tosac b/pseudocode/operators/tables/TANH.tosac index b45f121..5551593 100644 --- a/pseudocode/operators/tables/TANH.tosac +++ b/pseudocode/operators/tables/TANH.tosac @@ -8,7 +8,7 @@ // by a licensing agreement from ARM Limited. int16_t tanh_reference(int16_t x) { // input x range is -256 to +256 inclusive - fp64_t v = (fp64_t)x/(fp64_t)32; + fp64_t v = static_cast<fp64_t>(x) / static_cast<fp64_t>(32); v = exp(-2.0*v); v = (1.0-v)/(1.0+v); return round_to_nearest_int(32768.0 * v); |