diff options
author | Jason Carey <jcarey@argv.me> | 2016-02-10 17:49:33 -0500 |
---|---|---|
committer | Jason Carey <jcarey@argv.me> | 2016-02-11 17:02:11 -0500 |
commit | 48a6932e83dc61f774e1c5d943f59bec889b7183 (patch) | |
tree | 44a731330d9cfbfb24434bf38fb80d4d863cf16e /src/mongo/db/geo | |
parent | df981d0766beb3e1c423f72eba1831ec510bd457 (diff) | |
download | mongo-48a6932e83dc61f774e1c5d943f59bec889b7183.tar.gz |
SERVER-22567 use GeoHash::unhash_slow on big endian
Diffstat (limited to 'src/mongo/db/geo')
-rw-r--r-- | src/mongo/db/geo/hash.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/geo/hash.cpp b/src/mongo/db/geo/hash.cpp index f222f0005f7..c77e20cdae0 100644 --- a/src/mongo/db/geo/hash.cpp +++ b/src/mongo/db/geo/hash.cpp @@ -200,7 +200,11 @@ void GeoHash::unhash_slow(unsigned* x, unsigned* y) const { } void GeoHash::unhash(unsigned* x, unsigned* y) const { +#if MONGO_CONFIG_BYTE_ORDER == MONGO_LITTLE_ENDIAN unhash_fast(x, y); +#else + unhash_slow(x, y); +#endif } /** Is the 'bit'-th most significant bit set? (NOT the least significant) */ |