aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/clickhouse/src/Functions/atan2.cpp
blob: 7be177f6dfbaffc1dfe0e05f6bd79ad0333243f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <Functions/FunctionFactory.h>
#include <Functions/FunctionMathBinaryFloat64.h>

namespace DB
{
namespace
{
    struct Atan2Name
    {
        static constexpr auto name = "atan2";
    };
    using FunctionAtan2 = FunctionMathBinaryFloat64<BinaryFunctionVectorized<Atan2Name, atan2>>;

}

REGISTER_FUNCTION(Atan2)
{
    factory.registerFunction<FunctionAtan2>({}, FunctionFactory::CaseInsensitive);
}

}