aboutsummaryrefslogtreecommitdiff
path: root/reference_model/src/ops/ewise_binary.cc
diff options
context:
space:
mode:
authorJerry Ge <jerry.ge@arm.com>2023-03-06 13:07:36 -0800
committerEric Kunze <eric.kunze@arm.com>2023-03-17 18:47:04 +0000
commitcf305dbb7f3e3be7c4e6c71174e1183eb489ec03 (patch)
treea542921c739be36ff3133a20017e500b5405cb91 /reference_model/src/ops/ewise_binary.cc
parent2eb3d63318c139eda94775730878c6c2168ac148 (diff)
downloadreference_model-cf305dbb7f3e3be7c4e6c71174e1183eb489ec03.tar.gz
Refactor 1L to INT64_C()
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: If3f8c5a1f2dffac36448101959557f86b6ab6c7f
Diffstat (limited to 'reference_model/src/ops/ewise_binary.cc')
-rw-r--r--reference_model/src/ops/ewise_binary.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/reference_model/src/ops/ewise_binary.cc b/reference_model/src/ops/ewise_binary.cc
index c697db0..16386af 100644
--- a/reference_model/src/ops/ewise_binary.cc
+++ b/reference_model/src/ops/ewise_binary.cc
@@ -434,7 +434,7 @@ int OpMul<Rank, InDtype, OutDtype>::register_fcn()
int64_t result;
if (shift > 0)
{
- int64_t round = 1L << (shift - 1);
+ int64_t round = INT64_C(1) << (shift - 1);
result = static_cast<int64_t>(a) * static_cast<int64_t>(b) + round;
result = result >> shift;