Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Yershov <yershov@corp.mail.ru>2015-07-24 17:27:28 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:57:48 +0300
commit67a465c565768463220135b007cde2d7ce05de6a (patch)
tree6064fb8c7dfdb14ad5541ae57b4cf63edcf7002e /geometry
parentbab6d4cb56093673703a96d1d9c9d27fd5e923bc (diff)
Implement threads for coastline cell splitter
Diffstat (limited to 'geometry')
-rw-r--r--geometry/cellid.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/geometry/cellid.hpp b/geometry/cellid.hpp
index 1fef4c8059..e46d4fa816 100644
--- a/geometry/cellid.hpp
+++ b/geometry/cellid.hpp
@@ -36,6 +36,11 @@ public:
return CellId(bits, level);
}
+ inline static size_t TotalCellsOnLevel(size_t level)
+ {
+ return 1 << 2 * level;
+ }
+
//////////////////////////////////////////////////////////////////////////////////////////////////
// Simple getters