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