Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved portability #1

Merged
merged 2 commits into from
Mar 3, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion MurmurHash3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@

#else // defined(_MSC_VER)

#define FORCE_INLINE __attribute__((always_inline))
#if defined(__GNUC__) && ((__GNUC__ > 4) || (__GNUC__ == 4 && GNUC_MINOR >= 4))
/* gcc version >= 4.4 4.1 = RHEL 5, 4.4 = RHEL 6. Don't inline for RHEL 5 gcc which is 4.1*/
#define FORCE_INLINE attribute((always_inline))
#else
#define FORCE_INLINE
#endif

inline uint32_t rotl32 ( uint32_t x, int8_t r )
{
Expand Down
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.0
Name: mmh3
Version: 2.1
Version: 2.2
Summary: Python library for MurmurHash3, a set of fast and robust hash functions.
Home-page: http://packages.python.org/mmh3
Author: Hajime Senuma
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
sources = ['mmh3module.cpp', 'MurmurHash3.cpp'])

setup(name = 'mmh3',
version = '2.1',
version = '2.2',
description = 'Python library for MurmurHash (MurmurHash3), a set of fast and robust hash functions.',
license = 'Public Domain',
author = 'Hajime Senuma',
Expand Down