summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorArne Juul <arnej@yahoo-inc.com>2016-06-27 13:22:40 +0200
committerArne Juul <arnej@yahoo-inc.com>2016-06-27 13:22:40 +0200
commitd3d5cf1613ba87f623f613d6d78bed674b0f215d (patch)
treeab6925cd48b28518356768ab0d45da8071039e21 /document
parent53e0514b629e979dfb669b1ff129a133048066f7 (diff)
avoid including math.h
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/bucket/bucketselector.cpp3
-rw-r--r--document/src/vespa/document/select/orderingselector.cpp1
2 files changed, 1 insertions, 3 deletions
diff --git a/document/src/vespa/document/bucket/bucketselector.cpp b/document/src/vespa/document/bucket/bucketselector.cpp
index cfb5b7c001c..05e7bea912a 100644
--- a/document/src/vespa/document/bucket/bucketselector.cpp
+++ b/document/src/vespa/document/bucket/bucketselector.cpp
@@ -11,7 +11,6 @@
#include <vespa/document/select/visitor.h>
#include <vespa/document/select/branch.h>
#include <vespa/document/select/compare.h>
-#include <math.h>
namespace document {
@@ -143,7 +142,7 @@ using namespace document::select;
const select::ValueNode& valnode,
const select::Operator& op) {
if (op == FunctionOperator::EQ || op == document::select::GlobOperator::GLOB) {
- int bucketCount = (int)pow(2, 16);
+ int bucketCount = 1 << 16;
const IntegerValueNode* val(
dynamic_cast<const IntegerValueNode*>(&valnode));
diff --git a/document/src/vespa/document/select/orderingselector.cpp b/document/src/vespa/document/select/orderingselector.cpp
index 6b46d5cc836..dd4583a9bfa 100644
--- a/document/src/vespa/document/select/orderingselector.cpp
+++ b/document/src/vespa/document/select/orderingselector.cpp
@@ -10,7 +10,6 @@
#include "visitor.h"
#include "compare.h"
#include "branch.h"
-#include <math.h>
namespace document {