Ignore:
Timestamp:
Jul 28, 2017 2:51:44 AM (7 years ago)
Author:
nanang
Message:

Re #2004: Update libyuv version from libyuv git master repo dated 27 July 2017, the compile errors on old gcc versions issue persists though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/yuv/source/compare_gcc.cc

    r5358 r5633  
    2222#if !defined(LIBYUV_DISABLE_X86) && \ 
    2323    (defined(__x86_64__) || (defined(__i386__) && !defined(_MSC_VER))) 
     24 
     25uint32 HammingDistance_X86(const uint8* src_a, const uint8* src_b, int count) { 
     26  uint32 diff = 0u; 
     27 
     28  int i; 
     29  for (i = 0; i < count - 7; i += 8) { 
     30    uint64 x = *((uint64*)src_a) ^ *((uint64*)src_b); 
     31    src_a += 8; 
     32    src_b += 8; 
     33    diff += __builtin_popcountll(x); 
     34  } 
     35  return diff; 
     36} 
    2437 
    2538uint32 SumSquareError_SSE2(const uint8* src_a, const uint8* src_b, int count) { 
     
    6376} 
    6477 
    65 static uvec32 kHash16x33 = { 0x92d9e201, 0, 0, 0 };  // 33 ^ 16 
     78static uvec32 kHash16x33 = {0x92d9e201, 0, 0, 0};  // 33 ^ 16 
    6679static uvec32 kHashMul0 = { 
    67   0x0c3525e1,  // 33 ^ 15 
    68   0xa3476dc1,  // 33 ^ 14 
    69   0x3b4039a1,  // 33 ^ 13 
    70   0x4f5f0981,  // 33 ^ 12 
     80    0x0c3525e1,  // 33 ^ 15 
     81    0xa3476dc1,  // 33 ^ 14 
     82    0x3b4039a1,  // 33 ^ 13 
     83    0x4f5f0981,  // 33 ^ 12 
    7184}; 
    7285static uvec32 kHashMul1 = { 
    73   0x30f35d61,  // 33 ^ 11 
    74   0x855cb541,  // 33 ^ 10 
    75   0x040a9121,  // 33 ^ 9 
    76   0x747c7101,  // 33 ^ 8 
     86    0x30f35d61,  // 33 ^ 11 
     87    0x855cb541,  // 33 ^ 10 
     88    0x040a9121,  // 33 ^ 9 
     89    0x747c7101,  // 33 ^ 8 
    7790}; 
    7891static uvec32 kHashMul2 = { 
    79   0xec41d4e1,  // 33 ^ 7 
    80   0x4cfa3cc1,  // 33 ^ 6 
    81   0x025528a1,  // 33 ^ 5 
    82   0x00121881,  // 33 ^ 4 
     92    0xec41d4e1,  // 33 ^ 7 
     93    0x4cfa3cc1,  // 33 ^ 6 
     94    0x025528a1,  // 33 ^ 5 
     95    0x00121881,  // 33 ^ 4 
    8396}; 
    8497static uvec32 kHashMul3 = { 
    85   0x00008c61,  // 33 ^ 3 
    86   0x00000441,  // 33 ^ 2 
    87   0x00000021,  // 33 ^ 1 
    88   0x00000001,  // 33 ^ 0 
     98    0x00008c61,  // 33 ^ 3 
     99    0x00000441,  // 33 ^ 2 
     100    0x00000021,  // 33 ^ 1 
     101    0x00000001,  // 33 ^ 0 
    89102}; 
    90103 
     
    149162}  // namespace libyuv 
    150163#endif 
    151  
Note: See TracChangeset for help on using the changeset viewer.