mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +00:00
22 lines
388 B
C++
22 lines
388 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/FunctionMathUnary.h>
|
|
|
|
namespace DB
|
|
{
|
|
namespace
|
|
{
|
|
struct Log1pName
|
|
{
|
|
static constexpr auto name = "log1p";
|
|
};
|
|
using FunctionLog1p = FunctionMathUnary<UnaryFunctionVectorized<Log1pName, log1p>>;
|
|
|
|
}
|
|
|
|
void registerFunctionLog1p(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionLog1p>();
|
|
}
|
|
|
|
}
|