ClickHouse/src/Functions/pow.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
452 B
C++
Raw Normal View History

#include <Functions/FunctionMathBinaryFloat64.h>
#include <Functions/FunctionFactory.h>
namespace DB
{
2020-09-07 18:00:37 +00:00
namespace
{
struct PowName { static constexpr auto name = "pow"; };
using FunctionPow = FunctionMathBinaryFloat64<BinaryFunctionVectorized<PowName, pow>>;
2020-09-07 18:00:37 +00:00
}
REGISTER_FUNCTION(Pow)
{
2022-08-27 20:06:03 +00:00
factory.registerFunction<FunctionPow>({}, FunctionFactory::CaseInsensitive);
factory.registerAlias("power", "pow", FunctionFactory::CaseInsensitive);
}
}