1#include <Functions/FunctionFactory.h>
2#include <Functions/FunctionBitTestMany.h>
3
4namespace DB
5{
6
7struct BitTestAnyImpl
8{
9 template <typename A, typename B>
10 static inline UInt8 apply(A a, B b) { return (a & b) != 0; }
11};
12
13struct NameBitTestAny { static constexpr auto name = "bitTestAny"; };
14using FunctionBitTestAny = FunctionBitTestMany<BitTestAnyImpl, NameBitTestAny>;
15
16void registerFunctionBitTestAny(FunctionFactory & factory)
17{
18 factory.registerFunction<FunctionBitTestAny>();
19}
20
21}
22