ref: b5e1746b87c9a4dd94acd9d99c5aed6d4af1fe6d
parent: cf4026a9484af7f83003f58cd1b0b8f2722f425a
parent: 887b2727f097e4da695e66902259a69f468e17fe
author: dongzha <[email protected]>
date: Wed Jun 18 09:19:44 EDT 2014
Merge pull request #978 from huili2/ULL_insteadof_LL remove multiplication overflow warning by ULL instead of LL
--- a/codec/encoder/core/src/get_intra_predictor.cpp
+++ b/codec/encoder/core/src/get_intra_predictor.cpp
@@ -441,7 +441,7 @@
#ifdef _MSC_VER
uint64_t kuiSrc64 = (uint64_t) (0x0101010101010101U * kuiLeft);
#else
- uint64_t kuiSrc64 = (uint64_t) (0x0101010101010101LL * kuiLeft);
+ uint64_t kuiSrc64 = (uint64_t) (0x0101010101010101ULL * kuiLeft);
#endif
ST64 (pPred + iI8x8Stridex7, kuiSrc64);
@@ -522,8 +522,8 @@
const uint64_t kuiTopMean64 = (uint64_t) (0x0101010101010101U * kuiTopMean);
const uint64_t kuiBottomMean64 = (uint64_t) (0x0101010101010101U * kuiBottomMean);
#else
- const uint64_t kuiTopMean64 = (uint64_t) (0x0101010101010101LL * kuiTopMean);
- const uint64_t kuiBottomMean64 = (uint64_t) (0x0101010101010101LL * kuiBottomMean);
+ const uint64_t kuiTopMean64 = (uint64_t) (0x0101010101010101ULL * kuiTopMean);
+ const uint64_t kuiBottomMean64 = (uint64_t) (0x0101010101010101ULL * kuiBottomMean);
#endif
ST64 (pPred , kuiTopMean64);
ST64 (pPred + 8 , kuiTopMean64);
@@ -556,7 +556,7 @@
#ifdef _MSC_VER
const uint64_t kuiDcValue64 = (uint64_t)0x8080808080808080U;
#else
- const uint64_t kuiDcValue64 = (uint64_t)0x8080808080808080LL;
+ const uint64_t kuiDcValue64 = (uint64_t)0x8080808080808080ULL;
#endif
ST64 (pPred , kuiDcValue64);
ST64 (pPred + 8 , kuiDcValue64);
@@ -594,7 +594,7 @@
#ifdef _MSC_VER
const uint64_t kuiV64 = (uint64_t) (0x0101010101010101U * kuiSrc8);
#else
- const uint64_t kuiV64 = (uint64_t) (0x0101010101010101LL * kuiSrc8);
+ const uint64_t kuiV64 = (uint64_t) (0x0101010101010101ULL * kuiSrc8);
#endif
ST64 (&pPred[iPredStridex15], kuiV64);
ST64 (&pPred[iPredStridex15 + 8], kuiV64);
--- a/codec/processing/src/common/common.cpp
+++ b/codec/processing/src/common/common.cpp
@@ -60,7 +60,7 @@
#ifdef _MSC_VER
const uint64_t kuiV64 = (uint64_t) (0x0101010101010101U * kuiSrc8);
#else
- const uint64_t kuiV64 = (uint64_t) (0x0101010101010101LL * kuiSrc8);
+ const uint64_t kuiV64 = (uint64_t) (0x0101010101010101ULL * kuiSrc8);
#endif
ST64 (&pPred[iPredStridex15], kuiV64);
ST64 (&pPred[iPredStridex15 + 8], kuiV64);