Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • third_party
  • murmurhash
  • MurmurHash3.cpp
Find file
BlameHistoryPermalink
  • Kimmo Kinnunen's avatar
    Import new MurmurHash3 to fix g++ 4.9.2 errors · 19b890af
    Kimmo Kinnunen authored Aug 07, 2015
    The code is from http://smhasher.googlecode.com/svn/trunk/
    revision 152.
    
    Fixes error:
    ../../src/third_party/murmurhash/MurmurHash3.cpp:57:41: error: inlining failed in call to always_inline ‘uint32_t getblock(const uint32_t*, int)’: function body can be overwritten at link time
     FORCE_INLINE uint32_t getblock ( const uint32_t * p, int i )
    
    The error was previously fixed by adding a pragma to ignore the warning.
    
    The problem the compiler is complaining is that the function is visible
    to outside of the compilation unit. This can be fixed by making the
    function inline (as in the new version of the MurmurHash3.cpp) or
    static.
    
    Change-Id: I7a1262964489d72de8b4707ca2284363c8b46e20
    Reviewed-on: https://chromium-review.googlesource.com/291620Tested-by: 's avatarKimmo Kinnunen <kkinnunen@nvidia.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarDongseong Hwang <dongseong.hwang@intel.com>
    Tested-by: 's avatarDongseong Hwang <dongseong.hwang@intel.com>
    Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org>
    19b890af
MurmurHash3.cpp 7.72 KB
EditWeb IDE
×

Replace MurmurHash3.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.