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