blob: 9457ac64bc6935007781591a72787de66db48312 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#include <Functions/FunctionMathUnary.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
namespace
{
struct Log2Name { static constexpr auto name = "log2"; };
using FunctionLog2 = FunctionMathUnary<UnaryFunctionVectorized<Log2Name, log2>>;
}
REGISTER_FUNCTION(Log2)
{
factory.registerFunction<FunctionLog2>({}, FunctionFactory::CaseInsensitive);
}
}
|