History

Use the ULL prefix for 64 bit constants on MSVC as well

This syntax is already used consistently within the decoder. Ideally this could also use the C99 macro UINT64_C() for declaring 64 bit constants.

Martin Storsjö committed 12 years ago

Commit 78109f31 parent 32d5c222 files · +0 −21Browse files

Showing the changes to codec/processing/src/common/common.cpp (1 of 2 files). Show all

Unified · Split

codec/processing/src/common/common.cpp+0−4
@@ -57,11 +57,7 @@ void WelsI16x16LumaPredH_c (uint8_t* pPred, uint8_t* pRef, const int32_t kiStrid · 56 unmodified lines
5757
5858 do {
5959 const uint8_t kuiSrc8 = pRef[iStridex15 - 1];
60−#ifdef _MSC_VER
61− const uint64_t kuiV64 = (uint64_t) (0x0101010101010101U * kuiSrc8);
62−#else
6360 const uint64_t kuiV64 = (uint64_t) (0x0101010101010101ULL * kuiSrc8);
64−#endif
6561 ST64 (&pPred[iPredStridex15], kuiV64);
6662 ST64 (&pPred[iPredStridex15 + 8], kuiV64);
6763

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t