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