ref: 2af19fa6549d132bf12a59c92fbf2ac1ef8dfa79
parent: 2453042bf02e8c944105cd760998ff05bb44e22a
author: Martin Storsjö <martin@martin.st>
date: Wed May 13 06:36:38 EDT 2015
Add a LL suffix to 64 bit integer literals This fixes building with gcc 4.0.
--- a/codec/decoder/core/src/get_intra_predictor.cpp
+++ b/codec/decoder/core/src/get_intra_predictor.cpp
@@ -428,7 +428,7 @@
// 8-90
for (i = 0; i < 8; i++) {
- uiLeft = 0x0101010101010101U * uiPixelFilterL[i];
+ uiLeft = 0x0101010101010101ULL * uiPixelFilterL[i];
ST64A8 (pPred + iStride[i], uiLeft);
}
}
@@ -464,7 +464,7 @@
}
const uint8_t kuiMean = ((uiTotal + 8) >> 4);
- const uint64_t kuiMean64 = 0x0101010101010101U * kuiMean;
+ const uint64_t kuiMean64 = 0x0101010101010101ULL * kuiMean;
for (i = 0; i < 8; i++) {
ST64A8 (pPred + iStride[i], kuiMean64);
@@ -495,7 +495,7 @@
}
const uint8_t kuiMean = ((uiTotal + 4) >> 3);
- const uint64_t kuiMean64 = 0x0101010101010101U * kuiMean;
+ const uint64_t kuiMean64 = 0x0101010101010101ULL * kuiMean;
for (i = 0; i < 8; i++) {
ST64A8 (pPred + iStride[i], kuiMean64);
@@ -526,7 +526,7 @@
}
const uint8_t kuiMean = ((uiTotal + 4) >> 3);
- const uint64_t kuiMean64 = 0x0101010101010101U * kuiMean;
+ const uint64_t kuiMean64 = 0x0101010101010101ULL * kuiMean;
for (i = 0; i < 8; i++) {
ST64A8 (pPred + iStride[i], kuiMean64);
@@ -535,7 +535,7 @@
void WelsI8x8LumaPredDcNA_c (uint8_t* pPred, const int32_t kiStride, bool bTLAvail, bool bTRAvail) {
// for normal 8 bit depth, 8-94
- const uint64_t kuiDC64 = 0x8080808080808080U;
+ const uint64_t kuiDC64 = 0x8080808080808080ULL;
int32_t iStride[8];
int32_t i;