ClickHouse/dbms/src/Functions/exp10.cpp

26 lines
484 B
C++
Raw Normal View History

#include <Functions/FunctionMathUnaryFloat64.h>
#include <Functions/FunctionFactory.h>
2019-06-20 09:12:49 +00:00
#if !USE_VECTORCLASS
# include <common/preciseExp10.h>
#endif
namespace DB
{
struct Exp10Name { static constexpr auto name = "exp10"; };
using FunctionExp10 = FunctionMathUnaryFloat64<UnaryFunctionVectorized<Exp10Name,
#if USE_VECTORCLASS
exp10
#else
preciseExp10
#endif
>>;
void registerFunctionExp10(FunctionFactory & factory)
{
factory.registerFunction<FunctionExp10>();
}
}