aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/log10.cpp
blob: 5dfe4ac93572351c7cc82b73eb74f8b83e31d429 (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 Log10Name { static constexpr auto name = "log10"; };
using FunctionLog10 = FunctionMathUnary<UnaryFunctionVectorized<Log10Name, log10>>;

}

REGISTER_FUNCTION(Log10)
{
    factory.registerFunction<FunctionLog10>({}, FunctionFactory::CaseInsensitive);
}

}