1 | #include <Functions/FunctionMathUnary.h> |
---|---|
2 | #include <Functions/FunctionFactory.h> |
3 | |
4 | namespace DB |
5 | { |
6 | |
7 | struct Log2Name { static constexpr auto name = "log2"; }; |
8 | using FunctionLog2 = FunctionMathUnary<UnaryFunctionVectorized<Log2Name, log2>>; |
9 | |
10 | void registerFunctionLog2(FunctionFactory & factory) |
11 | { |
12 | factory.registerFunction<FunctionLog2>(FunctionFactory::CaseInsensitive); |
13 | } |
14 | |
15 | } |
16 |