This syntax is already used consistently within the decoder. Ideally this could also use the C99 macro UINT64_C() for declaring 64 bit constants.
Showing the changes to codec/processing/src/common/common.cpp (1 of 2 files). Show all
Unified · Split
| @@ -57,11 +57,7 @@ void WelsI16x16LumaPredH_c (uint8_t* pPred, uint8_t* pRef, const int32_t kiStrid · 56 unmodified lines | |||
| 57 | 57 | ||
| 58 | do { | 58 | do { |
| 59 | const uint8_t kuiSrc8 = pRef[iStridex15 - 1]; | 59 | const uint8_t kuiSrc8 = pRef[iStridex15 - 1]; |
| 60 | #ifdef _MSC_VER | ||
| 61 | const uint64_t kuiV64 = (uint64_t) (0x0101010101010101U * kuiSrc8); | ||
| 62 | #else | ||
| 63 | const uint64_t kuiV64 = (uint64_t) (0x0101010101010101ULL * kuiSrc8); | 60 | const uint64_t kuiV64 = (uint64_t) (0x0101010101010101ULL * kuiSrc8); |
| 64 | #endif | ||
| 65 | ST64 (&pPred[iPredStridex15], kuiV64); | 61 | ST64 (&pPred[iPredStridex15], kuiV64); |
| 66 | ST64 (&pPred[iPredStridex15 + 8], kuiV64); | 62 | ST64 (&pPred[iPredStridex15 + 8], kuiV64); |
| 67 | 63 | ||