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